From: jstebbins Date: Fri, 12 Sep 2008 17:20:37 +0000 (+0000) Subject: LinGui: fix another memory leak X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=11e2aed914536802a35cd6a88b7975622a853f35;p=handbrake-jp%2Fhandbrake-jp-git.git LinGui: fix another memory leak git-svn-id: svn://localhost/HandBrake/trunk@1692 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/gtk/src/main.c b/gtk/src/main.c index 43d78794..23ed044d 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 79da274d..cb9b0e2c 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;