Fix market reload and a crash when exiting

This commit is contained in:
Eduardo Bart
2012-07-31 11:42:26 -03:00
parent bca1af8f11
commit 614d1544c0
13 changed files with 15 additions and 23 deletions

View File

@@ -47,8 +47,7 @@ UIWidget::UIWidget()
UIWidget::~UIWidget()
{
#ifndef NDEBUG
if(g_app.isTerminated())
g_logger.warning(stdext::format("UIWidget '%s' reference not released", m_id));
assert(!g_app.isTerminated());
if(!m_destroyed)
g_logger.warning(stdext::format("widget '%s' was not explicitly destroyed", m_id));
#endif