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/init_unix.c | |
| parent | 03d94db0fd80f1d293dbf727b6e9a2466546c2c3 (diff) | |
Unified the allocators across all platforms so that everyone uses uiAlloc() and friends.
Diffstat (limited to 'new/init_unix.c')
| -rw-r--r-- | new/init_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
