[BUG_FIXED] Fix the inconsist code (closes #624)
Fix using of the member just after object deleting itself.
This commit is contained in:
parent
a36b4f7810
commit
5748fdb49f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user