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()
|
||||
{
|
||||
if(component && component->GetParentWindow())
|
||||
if (component)
|
||||
{
|
||||
if (component->GetParentWindow())
|
||||
component->GetParentWindow()->RemoveComponent(component);
|
||||
delete component;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user