From 5748fdb49f97acffad16d34bd8bfbbd61541a9b6 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 3 Aug 2015 23:02:16 +0200 Subject: [PATCH] [BUG_FIXED] Fix the inconsist code (closes #624) Fix using of the member just after object deleting itself. --- PowerEditor/src/WinControls/DockingWnd/Gripper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp b/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp index 22645e8f..2c64fec5 100644 --- a/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/Gripper.cpp @@ -239,8 +239,8 @@ LRESULT Gripper::runProc(UINT message, WPARAM wParam, LPARAM lParam) mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); ::SetWindowPos(_hParent, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); _pCont->focusClient(); - delete this; - break; + delete this; // TODO: remove this line and delete this object outside of itself + return TRUE; } default: break;