diff options
Diffstat (limited to 'new/window_windows.c')
| -rw-r--r-- | new/window_windows.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/new/window_windows.c b/new/window_windows.c index 58f4106..d68843b 100644 --- a/new/window_windows.c +++ b/new/window_windows.c @@ -46,6 +46,8 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA return 0; break; // fall through to DefWindowProcW() case WM_DESTROY: + if (w->child != NULL) + uiControlDestroy(w->child); uiFree(w); break; // fall through to DefWindowProcW() } |
