From 7b1dfbf1d6de954efdb5d9d9d4df61a98935ddd4 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 19:04:09 -0400 Subject: Unified the allocators across all platforms so that everyone uses uiAlloc() and friends. --- new/init_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'new/init_unix.c') diff --git a/new/init_unix.c b/new/init_unix.c index 48d4366..67954c0 100644 --- a/new/init_unix.c +++ b/new/init_unix.c @@ -9,10 +9,10 @@ uiInitError *uiInit(uiInitOptions *o) { uiInitError *err; - err = g_new0(uiInitError, 1); + err = uiNew(uiInitError); if (gtk_init_with_args(NULL, NULL, NULL, NULL, NULL, &(err->err)) == FALSE) return err; - g_free(err); + uiFree(err); return NULL; } @@ -24,5 +24,5 @@ const char *uiInitErrorMessage(uiInitError *err) void uiInitErrorFree(uiInitError *err) { g_error_free(err->err); - g_free(err); + uiFree(err); } -- cgit v1.2.3