Commit 4a33bbf0 authored by Claes Sjofors's avatar Claes Sjofors

Ge memory leakage fix for groups and nodeclasses

parent b26c01f7
......@@ -83,6 +83,17 @@ GlowNodeClass::GlowNodeClass( const GlowNodeClass& nc)
GlowNodeClass::~GlowNodeClass()
{
int i;
GlowArrayElem *element;
for ( i = 0; i < a.a_size; i++)
{
element = a.a[i];
a.remove( element);
ctx->object_deleted( element);
delete element;
i--;
}
ctx->object_deleted( 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