Merge pull request #203 from Frank-74/Glide-About-and-Config-memory-leak-fix
Glide Config/About dialog memory leak fix?
This commit is contained in:
commit
9767f73f71
|
@ -1122,6 +1122,7 @@ void CALL DllConfig ( HWND hParent )
|
||||||
|
|
||||||
Glide64ConfigDialog* Glide64Config = new Glide64ConfigDialog(hostWindow, wxID_ANY, wxEmptyString);
|
Glide64ConfigDialog* Glide64Config = new Glide64ConfigDialog(hostWindow, wxID_ANY, wxEmptyString);
|
||||||
Glide64Config->ShowModal();
|
Glide64Config->ShowModal();
|
||||||
|
delete hostWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*#ifndef _DEBUG
|
/*#ifndef _DEBUG
|
||||||
|
@ -1304,5 +1305,6 @@ void CALL DllAbout ( HWND hParent )
|
||||||
hostWindow->Enable();
|
hostWindow->Enable();
|
||||||
// hostWindow->UnsubclassWin();
|
// hostWindow->UnsubclassWin();
|
||||||
hostWindow->SetHWND(NULL);
|
hostWindow->SetHWND(NULL);
|
||||||
|
delete hostWindow;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue