diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-07-14 22:22:37 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-07-14 22:22:37 +0800 |
commit | edd4b54aea706e6e2c4b6b35edb37012230c5cea (patch) | |
tree | 2bbbb3b2d0611c1c367db162c76933291bde0028 /embed/downloader-view.c | |
parent | 52756c056bf6b4a3bd93e0461391287b1761ed8d (diff) | |
download | gsoc2013-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 'embed/downloader-view.c')
-rw-r--r-- | embed/downloader-view.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |