CLuaInstance: Add debug output to CWindowDelete/ComponentsTextDelete

Origin commit data
------------------
Branch: ni/coolstream
Commit: 623efecc2f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-03-16 (Sun, 16 Mar 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2014-03-16 11:56:35 +01:00
parent fdc2bdf389
commit b50f2b4164

View File

@@ -1432,11 +1432,12 @@ int CLuaInstance::CWindowGetFooterHeight(lua_State *L)
int CLuaInstance::CWindowDelete(lua_State *L)
{
DBG("CLuaInstance::%s %d\n", __func__, lua_gettop(L));
CLuaCWindow *m = CWindowCheck(L, 1);
if (!m)
return 0;
m->w->kill();
m->w->hide();
delete m;
return 0;
}
@@ -1653,11 +1654,12 @@ int CLuaInstance::ComponentsTextScroll(lua_State *L)
int CLuaInstance::ComponentsTextDelete(lua_State *L)
{
DBG("CLuaInstance::%s %d\n", __func__, lua_gettop(L));
CLuaComponentsText *m = ComponentsTextCheck(L, 1);
if (!m)
return 0;
m->ct->kill();
m->ct->hide();
delete m;
return 0;
}