mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 17:29:10 +00:00
FIXED: It's not nice to leak memory.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
363154e241
commit
20820697a3
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ namespace NLGUI
|
||||||
{
|
{
|
||||||
if( _Parent != NULL )
|
if( _Parent != NULL )
|
||||||
_Parent->delView( _ViewText );
|
_Parent->delView( _ViewText );
|
||||||
|
else
|
||||||
|
delete _ViewText;
|
||||||
|
|
||||||
_ViewText = NULL;
|
_ViewText = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue