aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/ephy-dialog.c5
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a8a3a0f26..cdd2735ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2004-01-25 Christian Persch <chpe@cvs.gnome.org>
+ * lib/ephy-dialog.c: (set_value_from_pref),
+ (set_combo_box_from_value):
+
+ Fix mem leaks.
+
+2004-01-25 Christian Persch <chpe@cvs.gnome.org>
+
* embed/mozilla/mozilla-notifiers.cpp:
Fix mem leak.
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);
}