diff options
author | Christian Persch <chp@cvs.gnome.org> | 2003-08-09 01:37:14 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-08-09 01:37:14 +0800 |
commit | 024a046466834e87cf7e03794899cead93eb2343 (patch) | |
tree | d63680dba3ea7d14ef77dfc1a14a4222cdb11449 /embed/downloader-view.c | |
parent | f8c58a77e108232aa48688eee250bed33f359b22 (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r-- | embed/downloader-view.c | 7 |
1 files changed, 4 insertions, 3 deletions
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, |