From 54e947eed3d75d0fbae533e7e4cce8fe84aaf77c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 8 Apr 2015 00:43:35 -0400 Subject: Started work on ensuring things get cleaned up. Added a destroy() method to uiControl and implemented most of the work for Windows. --- new/window_windows.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'new/window_windows.c') 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() } -- cgit v1.2.3