Commit 71bcc60d authored by Claes Sjofors's avatar Claes Sjofors

Bugfix in FlowNode destructor

parent 868bfe06
......@@ -80,6 +80,12 @@ FlowNode::~FlowNode()
if ( ctx->trace_started)
trace_close();
ctx->object_deleted( this);
if ( ctx->nodraw) return;
erase();
nav_erase();
for ( int i = 0; i < 10; i++)
{
if ( annotv_inputmode[i])
......@@ -87,11 +93,6 @@ FlowNode::~FlowNode()
if ( annotsize[i] > 0)
free( annotv[i]);
}
ctx->object_deleted( this);
if ( ctx->nodraw) return;
erase();
nav_erase();
ctx->set_defered_redraw();
ctx->delete_node_cons( this);
......
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