aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--embed/downloader-view.c5
-rw-r--r--src/language-editor.c1
-rwxr-xr-xsrc/pdm-dialog.c1
4 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a8343f5a1..564548b34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+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.
+
2003-07-14 Marco Pesenti Gritti <marco@it.gnome.org>
* lib/egg/eggtreemultidnd.c:
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 2fab5601a..3773b410c 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -325,6 +325,7 @@ controls_info_foreach (GtkTreeModel *model,
gtk_tree_model_get_value (model, iter, COL_PERSIST_OBJECT, &val);
persist_object = g_value_get_pointer (&val);
+ g_value_unset (&val);
details = g_hash_table_lookup (info->priv->details_hash,
persist_object);
@@ -847,6 +848,7 @@ download_dialog_pause_cb (GtkButton *button, DownloaderView *dv)
gtk_tree_model_get_value (model, &iter, COL_PERSIST_OBJECT, &val);
persist_object = g_value_get_pointer (&val);
+ g_value_unset (&val);
details = g_hash_table_lookup (dv->priv->details_hash,
persist_object);
@@ -900,6 +902,7 @@ download_dialog_abort_cb (GtkButton *button, DownloaderView *dv)
gtk_tree_model_get_value (model, &iter,
COL_PERSIST_OBJECT, &val);
persist_object = g_value_get_pointer (&val);
+ g_value_unset (&val);
details = g_hash_table_lookup (dv->priv->details_hash,
persist_object);
@@ -939,6 +942,7 @@ downloader_treeview_selection_changed_cb (GtkTreeSelection *selection,
{
gtk_tree_model_get_value (priv->model, &iter, COL_PERSIST_OBJECT, &val);
persist_object = g_value_get_pointer (&val);
+ g_value_unset (&val);
details = g_hash_table_lookup (priv->details_hash,
persist_object);
@@ -1059,6 +1063,7 @@ open_selection_foreach (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *ite
gtk_tree_model_get_value (model, iter, COL_PERSIST_OBJECT, &val);
persist_object = g_value_get_pointer (&val);
+ g_value_unset (&val);
details = g_hash_table_lookup (dv->priv->details_hash,
persist_object);
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);