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

Fix using of the member just after object deleting itself.
This commit is contained in:
Don Ho 2015-08-03 23:02:16 +02:00
parent a36b4f7810
commit 5748fdb49f

View File

@ -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;