antonypro/QGoodWindow

Maybe memory leak in qgoodwindow

Closed this issue · 1 comments

Hi, @hcaihao!

After you pointed me the memory leak, i found that QGoodWindow isn't releasing properly all of it's memory allocated objects.

Some changes were made on version 2.4.4 beta3 to fix this problem:

if (m_window_handle)
{
delete m_window_handle;
m_window_handle = nullptr;
}
DestroyWindow(m_hwnd);
UnregisterClassW(L"QGoodWindowClass", GetModuleHandleW(nullptr));