Actually fix the bug, see previous commit
This commit is contained in:
parent
1e67a579fd
commit
9f47e6c028
@ -83,8 +83,11 @@ int LuaComponent::visible(lua_State * l)
|
|||||||
|
|
||||||
LuaComponent::~LuaComponent()
|
LuaComponent::~LuaComponent()
|
||||||
{
|
{
|
||||||
if(component && component->GetParentWindow())
|
if (component)
|
||||||
component->GetParentWindow()->RemoveComponent(component);
|
{
|
||||||
delete component;
|
if (component->GetParentWindow())
|
||||||
|
component->GetParentWindow()->RemoveComponent(component);
|
||||||
|
delete component;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user