From c9b7b029c7278523452e1962bf188359f534ab1e Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 25 Jan 2004 13:52:36 +0000 Subject: Fix mem leaks. 2004-01-25 Christian Persch * lib/ephy-dialog.c: (set_value_from_pref), (set_combo_box_from_value): Fix mem leaks. --- ChangeLog | 7 +++++++ lib/ephy-dialog.c | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a8a3a0f26..cdd2735ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-01-25 Christian Persch + + * lib/ephy-dialog.c: (set_value_from_pref), + (set_combo_box_from_value): + + Fix mem leaks. + 2004-01-25 Christian Persch * embed/mozilla/mozilla-notifiers.cpp: diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c index 0ed3df6fd..d411ab244 100644 --- a/lib/ephy-dialog.c +++ b/lib/ephy-dialog.c @@ -187,8 +187,6 @@ set_value_from_pref (PropertyInfo *info, GValue *value) g_warning ("Unsupported value read from pref %s\n", info->pref); break; } - - LOG ("id[%s], pref[%s] = %s", info->id, info->pref, g_strdup_value_contents (value)) } static void @@ -542,9 +540,10 @@ set_combo_box_from_value (PropertyInfo *info, const GValue *value) { gtk_tree_model_get_value (model, &iter, info->data_col, &data); found = compare_values (&data, value); + g_value_unset (&data); + if (found) break; - g_value_unset (&data); valid = gtk_tree_model_iter_next (model, &iter); } -- cgit v1.2.3