diff options
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r-- | src/osk_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp index c2b3b3bbf..290e377b2 100644 --- a/src/osk_gui.cpp +++ b/src/osk_gui.cpp @@ -164,7 +164,7 @@ static void OskWndProc(Window *w, WindowEvent *e) parent->HandleWindowEvent(&e); } } - DeleteWindow(w); + delete w; break; case OSK_WIDGET_CANCEL: @@ -179,7 +179,7 @@ static void OskWndProc(Window *w, WindowEvent *e) UpdateTextBufferSize(&qs->text); MoveTextBufferPos(&qs->text, WKC_END); } - DeleteWindow(w); + delete w; break; } /* make sure that the parent window's textbox also gets updated */ |