Skip to content

Commit

Permalink
[BUG_FIXED] Fix the inconsist code (closes notepad-plus-plus#624)
Browse files Browse the repository at this point in the history
Fix using of the member just after object deleting itself.
  • Loading branch information
donho committed Aug 3, 2015
1 parent a36b4f7 commit 5748fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PowerEditor/src/WinControls/DockingWnd/Gripper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5748fdb

Please sign in to comment.