mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 15:15:57 -05:00
Fix a rather heinous memory bug. Don't delete things on the stack!
This commit is contained in:
parent
1fe21b7686
commit
7cfbedc04c
@ -94,8 +94,6 @@ void Application::Exit()
|
|||||||
if (m_dlg)
|
if (m_dlg)
|
||||||
{
|
{
|
||||||
m_dlg->DestroyWindow();
|
m_dlg->DestroyWindow();
|
||||||
delete m_dlg;
|
|
||||||
m_dlg = NULL;
|
|
||||||
}
|
}
|
||||||
::PostQuitMessage(0);
|
::PostQuitMessage(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user