mirror of
https://github.com/edubart/otclient.git
synced 2025-12-15 05:09:46 +01:00
Fix market reload and a crash when exiting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user