diff options
author | jstebbins <[email protected]> | 2008-09-08 02:13:48 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-08 02:13:48 +0000 |
commit | 4d231bd034d3f73efae01eee686896234c202a85 (patch) | |
tree | 97641b0afecfd6d8e167e276198f75b8de7b3e63 /gtk/src/settings.c | |
parent | ee19debd964cbd40df6097f34be0076162700550 (diff) |
LinGui: yikes, this thing leaks worse than my roof, fixed
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1677 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r-- | gtk/src/settings.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 1fad691ce..d7b824bbb 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -285,6 +285,9 @@ ghb_widget_value(GtkWidget *widget) 3, &ivalue, 4, &svalue, -1); value = ghb_combo_value_new(index, option, shortOpt, svalue, ivalue); + g_free(option); + g_free(shortOpt); + g_free(svalue); } else { @@ -413,7 +416,10 @@ ghb_widget_index(GtkWidget *widget) if (value == NULL) return 0; ghb_combodata_t *cd; if (G_VALUE_TYPE(value) != ghb_combodata_get_type()) + { + ghb_value_free(value); return 0; + } cd = g_value_get_boxed(value); index = cd->index; ghb_value_free(value); |