aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-07-14 22:22:37 +0800
committerChristian Persch <chpe@src.gnome.org>2003-07-14 22:22:37 +0800
commitedd4b54aea706e6e2c4b6b35edb37012230c5cea (patch)
tree2bbbb3b2d0611c1c367db162c76933291bde0028 /src
parent52756c056bf6b4a3bd93e0461391287b1761ed8d (diff)
downloadgsoc2013-epiphany-edd4b54aea706e6e2c4b6b35edb37012230c5cea.tar
gsoc2013-epiphany-edd4b54aea706e6e2c4b6b35edb37012230c5cea.tar.gz
gsoc2013-epiphany-edd4b54aea706e6e2c4b6b35edb37012230c5cea.tar.bz2
gsoc2013-epiphany-edd4b54aea706e6e2c4b6b35edb37012230c5cea.tar.lz
gsoc2013-epiphany-edd4b54aea706e6e2c4b6b35edb37012230c5cea.tar.xz
gsoc2013-epiphany-edd4b54aea706e6e2c4b6b35edb37012230c5cea.tar.zst
gsoc2013-epiphany-edd4b54aea706e6e2c4b6b35edb37012230c5cea.zip
Fix mem leaks; thanks to Xan for pointing this out.
2003-07-14 Christian Persch <chpe@cvs.gnome.org> * src/pdm-dialog.c: (pdm_dialog_cookies_properties_button_clicked_cb): * src/language-editor.c: (language_editor_update_pref): * embed/downloader-view.c: (controls_info_foreach), (download_dialog_pause_cb), (download_dialog_abort_cb), (downloader_treeview_selection_changed_cb), (open_selection_foreach): Fix mem leaks; thanks to Xan for pointing this out.
Diffstat (limited to 'src')
-rw-r--r--src/language-editor.c1
-rwxr-xr-xsrc/pdm-dialog.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/language-editor.c b/src/language-editor.c
index 84c19ec2e..6950062dd 100644
--- a/src/language-editor.c
+++ b/src/language-editor.c
@@ -154,6 +154,7 @@ language_editor_update_pref (LanguageEditor *editor)
gtk_tree_model_get_value (GTK_TREE_MODEL (editor->priv->model),
&iter, COL_DATA, &val);
index = g_value_get_int (&val);
+ g_value_unset (&val);
strings = g_slist_append(strings, GINT_TO_POINTER(index));
}
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index d5ef8cc42..1ba262599 100755
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -792,6 +792,7 @@ pdm_dialog_cookies_properties_button_clicked_cb (GtkWidget *button,
gtk_tree_model_get_value
(model, &iter, COL_COOKIES_DATA, &val);
info = (CookieInfo *)g_value_get_pointer (&val);
+ g_value_unset (&val);
show_cookies_properties (dialog, info);