mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Delete SimpleGLWindow near where it's new'd.
This makes it clearer and more foolproof.
This commit is contained in:
parent
83548041e2
commit
d5513c3b58
2 changed files with 4 additions and 3 deletions
|
@ -201,9 +201,6 @@ CGEDebugger::CGEDebugger(HINSTANCE _hInstance, HWND _hParent)
|
|||
}
|
||||
|
||||
CGEDebugger::~CGEDebugger() {
|
||||
delete frameWindow;
|
||||
delete texWindow;
|
||||
|
||||
delete flags;
|
||||
delete lighting;
|
||||
delete textureState;
|
||||
|
|
|
@ -383,6 +383,10 @@ LRESULT CALLBACK SimpleGLWindow::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPA
|
|||
// Continue with window creation.
|
||||
return win != NULL ? TRUE : FALSE;
|
||||
|
||||
case WM_NCDESTROY:
|
||||
delete win;
|
||||
return 0;
|
||||
|
||||
case WM_LBUTTONDBLCLK:
|
||||
if (win->ToggleZoom()) {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue