diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 19:04:09 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 19:04:09 -0400 |
| commit | 7b1dfbf1d6de954efdb5d9d9d4df61a98935ddd4 (patch) | |
| tree | 98b82ee5987a646a409bb0efd510366cb5182ef0 /new/window_unix.c | |
| parent | 03d94db0fd80f1d293dbf727b6e9a2466546c2c3 (diff) | |
Unified the allocators across all platforms so that everyone uses uiAlloc() and friends.
Diffstat (limited to 'new/window_unix.c')
| -rw-r--r-- | new/window_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/new/window_unix.c b/new/window_unix.c index ecc520c..acdede7 100644 --- a/new/window_unix.c +++ b/new/window_unix.c @@ -12,7 +12,7 @@ uiWindow *uiNewWindow(char *title, int width, int height) { uiWindow *w; - w = g_new0(uiWindow, 1); + w = uiNew(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); @@ -24,7 +24,7 @@ uiWindow *uiNewWindow(char *title, int width, int height) void uiWindowDestroy(uiWindow *w) { gtk_widget_destroy(w->widget); - g_free(w); + uiFree(w); } uintptr_t uiWindowHandle(uiWindow *w) |
