diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-08 00:43:35 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-08 00:43:35 -0400 |
| commit | 54e947eed3d75d0fbae533e7e4cce8fe84aaf77c (patch) | |
| tree | d510e639dfdb00f7ae8d8ce9de90a9e54001f901 /new/window_windows.c | |
| parent | 521829a0a66f62e9ed4256440a1ed34565e4d51f (diff) | |
Started work on ensuring things get cleaned up. Added a destroy() method to uiControl and implemented most of the work for Windows.
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() } |
