diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-06 12:25:16 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-06 12:25:16 -0400 |
| commit | 2f2836fa65e598435bbe395a44824c39efe0b198 (patch) | |
| tree | 349d5616c64e61ad891f770f3a6cde7aebc21948 | |
| parent | ee1653f542f0c070afb8310c9041267496bbdf05 (diff) | |
More precise cleanup in GTK+ uiInitErrorFree().
| -rw-r--r-- | new/uiinit_unix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/new/uiinit_unix.c b/new/uiinit_unix.c index bd2463d..4d951af 100644 --- a/new/uiinit_unix.c +++ b/new/uiinit_unix.c @@ -12,7 +12,7 @@ uiInitError *uiInit(uiInitOptions *o) e = g_new0(uiInitError, 1); if (gtk_init_with_args(NULL, NULL, NULL, NULL, NULL, &(e->err)) == FALSE) return e; - uiInitErrorFree(e); + g_free(e); return NULL; } @@ -23,5 +23,6 @@ const char *uiInitErrorMessage(uiInitError *e) void uiInitErrorFree(uiInitError *e) { + g_error_free(e->err); g_free(e); } |
