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() ...@@ -98,7 +98,15 @@ FlowNode::~FlowNode()
trace_close(); trace_close();
ctx->object_deleted( this); 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(); erase();
nav_erase(); nav_erase();
...@@ -1103,4 +1111,4 @@ void FlowNode::change_nodeclass( FlowNodeClass *new_nc) ...@@ -1103,4 +1111,4 @@ void FlowNode::change_nodeclass( FlowNodeClass *new_nc)
nc->draw( &pos, highlight, dimmed, hot, (void *)this); nc->draw( &pos, highlight, dimmed, hot, (void *)this);
else else
draw_inverse(); 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