summaryrefslogtreecommitdiff
path: root/new
diff options
context:
space:
mode:
Diffstat (limited to 'new')
-rw-r--r--new/uiinit_unix.c3
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);
}