diff options
author | jstebbins <[email protected]> | 2008-09-12 17:20:37 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-12 17:20:37 +0000 |
commit | 3feae357a5d62add8c0bc32753b2b679bdb8aa9a (patch) | |
tree | 3b5430de1170269f081fc350f5967fea88fcfcae | |
parent | 1fe027969dd1783073e204d9f8922cfacc4ded9e (diff) |
LinGui: fix another memory leak
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1692 b64f7644-9d1e-0410-96f1-a4d463321fa5
-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; |