clean table fields on widget destruction

This commit is contained in:
Eduardo Bart 2012-02-07 04:33:20 -02:00
parent 458cdcc23e
commit e2203799dc
1 changed files with 2 additions and 0 deletions

View File

@ -552,6 +552,8 @@ void UIWidget::destroy()
callLuaField("onDestroy"); callLuaField("onDestroy");
releaseLuaFieldsTable();
#ifdef DEBUG #ifdef DEBUG
auto self = asUIWidget(); auto self = asUIWidget();
if(self != g_ui.getRootWidget()) { if(self != g_ui.getRootWidget()) {