aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chp@cvs.gnome.org>2003-08-09 01:37:14 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-09 01:37:14 +0800
commit024a046466834e87cf7e03794899cead93eb2343 (patch)
treed63680dba3ea7d14ef77dfc1a14a4222cdb11449
parentf8c58a77e108232aa48688eee250bed33f359b22 (diff)
downloadgsoc2013-epiphany-024a046466834e87cf7e03794899cead93eb2343.tar
gsoc2013-epiphany-024a046466834e87cf7e03794899cead93eb2343.tar.gz
gsoc2013-epiphany-024a046466834e87cf7e03794899cead93eb2343.tar.bz2
gsoc2013-epiphany-024a046466834e87cf7e03794899cead93eb2343.tar.lz
gsoc2013-epiphany-024a046466834e87cf7e03794899cead93eb2343.tar.xz
gsoc2013-epiphany-024a046466834e87cf7e03794899cead93eb2343.tar.zst
gsoc2013-epiphany-024a046466834e87cf7e03794899cead93eb2343.zip
Fix mem leak.
2003-08-08 Christian Persch <chp@cvs.gnome.org> * embed/downloader-view.c: (downloader_view_add_download): Fix mem leak.
-rw-r--r--ChangeLog6
-rw-r--r--embed/downloader-view.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a139c4fae..58cd79855 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2003-08-08 Christian Persch <chp@cvs.gnome.org>
+ * embed/downloader-view.c: (downloader_view_add_download):
+
+ Fix mem leak.
+
+2003-08-08 Christian Persch <chp@cvs.gnome.org>
+
* src/bookmarks/ephy-topics-selector: (topic_toggled), (topic_clicked),
(topic_key_pressed):
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 410f53918..174de53bf 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -588,6 +588,7 @@ downloader_view_add_download (DownloaderView *dv,
GtkTreeIter iter;
DownloadDetails *details;
GtkTreeSelection *selection;
+ GtkTreePath *path;
details = g_new0 (DownloadDetails, 1);
details->filename = g_strdup (filename);
@@ -609,10 +610,10 @@ downloader_view_add_download (DownloaderView *dv,
gtk_list_store_append (GTK_LIST_STORE (dv->priv->model),
&iter);
+ path = gtk_tree_model_get_path (GTK_TREE_MODEL (dv->priv->model), &iter);
details->ref = gtk_tree_row_reference_new
- (GTK_TREE_MODEL (dv->priv->model),
- gtk_tree_model_get_path
- (GTK_TREE_MODEL (dv->priv->model), &iter));
+ (GTK_TREE_MODEL (dv->priv->model),path);
+ gtk_tree_path_free (path);
gtk_list_store_set (GTK_LIST_STORE (dv->priv->model),
&iter,