compSub,
compSub->GetShapeType() );
geomGen->RemoveObject( compSub );
- if ( shared->length() > 0 )
+ compSub->UnRegister();
+ if ( shared->length() > 0 ) {
geomGen->RemoveObject( shared[0] );
+ shared[0]->UnRegister();
+ }
return ( shared->length() > 0 );
}
}