[BUG_FIXED] Fix the inconsist code (closes #624)

Fix using of the member just after object deleting itself.
pull/637/head
Don Ho 2015-08-03 23:02:16 +02:00
parent a36b4f7810
commit 5748fdb49f
1 changed files with 2 additions and 2 deletions

View File

@ -239,8 +239,8 @@ LRESULT Gripper::runProc(UINT message, WPARAM wParam, LPARAM lParam)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
::SetWindowPos(_hParent, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); ::SetWindowPos(_hParent, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
_pCont->focusClient(); _pCont->focusClient();
delete this; delete this; // TODO: remove this line and delete this object outside of itself
break; return TRUE;
} }
default: default:
break; break;