[BUG_FIXED] Fix the inconsist code (closes #624)
Fix using of the member just after object deleting itself.pull/637/head
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);
|
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;
|
||||||
|
|
Loading…
Reference in New Issue