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. --- lib/ephy-dialog.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') 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