From edd4b54aea706e6e2c4b6b35edb37012230c5cea Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 14 Jul 2003 14:22:37 +0000 Subject: Fix mem leaks; thanks to Xan for pointing this out. 2003-07-14 Christian Persch * 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. --- src/language-editor.c | 1 + src/pdm-dialog.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3