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 /gtk/src/plist.c | |
parent | 1fe027969dd1783073e204d9f8922cfacc4ded9e (diff) |
LinGui: fix another memory leak
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1692 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/plist.c')
-rw-r--r-- | gtk/src/plist.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |