aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-25 21:52:36 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-25 21:52:36 +0800
commitc9b7b029c7278523452e1962bf188359f534ab1e (patch)
treea3e5b9c47e725198152359a9a44c788caf0cca0b /lib
parentafd11d955382b2b6637f4b13a96d072c5f632c57 (diff)
downloadgsoc2013-epiphany-c9b7b029c7278523452e1962bf188359f534ab1e.tar
gsoc2013-epiphany-c9b7b029c7278523452e1962bf188359f534ab1e.tar.gz
gsoc2013-epiphany-c9b7b029c7278523452e1962bf188359f534ab1e.tar.bz2
gsoc2013-epiphany-c9b7b029c7278523452e1962bf188359f534ab1e.tar.lz
gsoc2013-epiphany-c9b7b029c7278523452e1962bf188359f534ab1e.tar.xz
gsoc2013-epiphany-c9b7b029c7278523452e1962bf188359f534ab1e.tar.zst
gsoc2013-epiphany-c9b7b029c7278523452e1962bf188359f534ab1e.zip
Fix mem leaks.
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-dialog.c5
1 files changed, 2 insertions, 3 deletions
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);
}