summaryrefslogtreecommitdiff
path: root/new/window_unix.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-07 22:54:21 -0400
committerPietro Gagliardi <[email protected]>2015-04-07 22:54:21 -0400
commit3fc36ec58228f244f841f6ff8953cbbbfea9f350 (patch)
tree59b410a383167a1afd5f6920d73f02033114e07d /new/window_unix.c
parent33b1c29de87a8fa9b5b1d67668730173bb2873ee (diff)
More allocation logging. I wonder if I can just log directly in the allocators themselves...
Diffstat (limited to 'new/window_unix.c')
-rw-r--r--new/window_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/new/window_unix.c b/new/window_unix.c
index 9f61289..734b156 100644
--- a/new/window_unix.c
+++ b/new/window_unix.c
@@ -12,7 +12,7 @@ static void onDestroy(GtkWindow *window, gpointer data)
{
uiWindow *w = (uiWindow *) data;
-printf("destroying window; freeing uiWindow\n");
+LOGFREE(w, uiWindow)
uiFree(w);
}
@@ -21,6 +21,7 @@ uiWindow *uiNewWindow(char *title, int width, int height)
uiWindow *w;
w = uiNew(uiWindow);
+LOGALLOC(w, uiWindow)
w->widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(w->widget), title);
gtk_window_resize(GTK_WINDOW(w->widget), width, height);