Commit 1a0e4470 authored by Claes Sjofors's avatar Claes Sjofors

Xtt, memory lekeage fix in delete of flow node

parent 027e7cac
......@@ -98,7 +98,15 @@ FlowNode::~FlowNode()
trace_close();
ctx->object_deleted( this);
if ( ctx->nodraw) return;
if ( ctx->nodraw) {
for ( int i = 0; i < 10; i++) {
if ( annotv_inputmode[i])
close_annotation_input( i);
if ( annotsize[i] > 0)
free( annotv[i]);
}
return;
}
erase();
nav_erase();
......@@ -1103,4 +1111,4 @@ void FlowNode::change_nodeclass( FlowNodeClass *new_nc)
nc->draw( &pos, highlight, dimmed, hot, (void *)this);
else
draw_inverse();
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment