diff options
-rw-r--r-- | gtk/src/main.c | 2 | ||||
-rw-r--r-- | gtk/src/plist.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index 43d787941..23ed044db 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -571,8 +571,6 @@ main (int argc, char *argv[]) g_timeout_add (500, ghb_timer_cb, (gpointer)ud); // Everything should be go-to-go. Lets rock! gtk_main (); - //I'd like to do this, but hb threads seem to persist for a while - //so closing crashes :( ghb_backend_close(); if (ud->queue) ghb_value_free(ud->queue); diff --git a/gtk/src/plist.c b/gtk/src/plist.c index 79da274d2..cb9b0e2c9 100644 --- a/gtk/src/plist.c +++ b/gtk/src/plist.c @@ -377,6 +377,8 @@ ghb_plist_parse(const gchar *buf, gssize len) g_markup_parse_context_parse(ctx, buf, len, &err); g_markup_parse_context_end_parse(ctx, &err); g_markup_parse_context_free(ctx); + if (pd.key) g_free(pd.key); + if (pd.value) g_free(pd.value); g_queue_free(pd.stack); g_queue_free(pd.tag_stack); return pd.plist; |