diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 22:54:21 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 22:54:21 -0400 |
| commit | 3fc36ec58228f244f841f6ff8953cbbbfea9f350 (patch) | |
| tree | 59b410a383167a1afd5f6920d73f02033114e07d /new/window_windows.c | |
| parent | 33b1c29de87a8fa9b5b1d67668730173bb2873ee (diff) | |
More allocation logging. I wonder if I can just log directly in the allocators themselves...
Diffstat (limited to 'new/window_windows.c')
| -rw-r--r-- | new/window_windows.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/new/window_windows.c b/new/window_windows.c index ed2cea3..50e7a88 100644 --- a/new/window_windows.c +++ b/new/window_windows.c @@ -46,7 +46,7 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA return 0; break; // fall through to DefWindowProcW() case WM_DESTROY: -printf("destroying window; freeing uiWindow\n"); +LOGFREE(w, uiWindow) uiFree(w); break; // fall through to DefWindowProcW() } @@ -82,6 +82,7 @@ uiWindow *uiNewWindow(char *title, int width, int height) WCHAR *wtitle; w = uiNew(uiWindow); +LOGALLOC(w, uiWindow) w->onClosing = defaultOnClosing; adjust.left = 0; |
