aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-07-14 01:03:14 +0800
committerChristian Persch <chpe@src.gnome.org>2003-07-14 01:03:14 +0800
commit4bf4f76bffb2f7eb18672d26aace9c097b439fb9 (patch)
treee2b1326d8aab6316cebdf715fa959f56c81f3be6 /lib
parent8251e7c1e69a39cc178a288aba7a006a9449cc00 (diff)
downloadgsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.gz
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.bz2
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.lz
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.xz
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.tar.zst
gsoc2013-epiphany-4bf4f76bffb2f7eb18672d26aace9c097b439fb9.zip
Fix mem leaks.
2003-07-13 Christian Persch <chpe@cvs.gnome.org> * src/language-editor.c: (language_editor_remove_button_clicked_cb): * embed/downloader-view.c: (downloader_view_set_download_info), (downloader_view_remove_download), (downloader_view_set_download_progress), (downloader_view_set_download_status), (download_dialog_abort_cb): * lib/widgets/ephy-tree-model-sort.c: (ephy_tree_model_sort_multi_row_draggable): Fix mem leaks.
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-tree-model-sort.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/widgets/ephy-tree-model-sort.c b/lib/widgets/ephy-tree-model-sort.c
index b91946e8d..d3b425325 100644
--- a/lib/widgets/ephy-tree-model-sort.c
+++ b/lib/widgets/ephy-tree-model-sort.c
@@ -180,6 +180,8 @@ ephy_tree_model_sort_multi_row_draggable (EggTreeMultiDragSource *drag_source, G
ephy_tree_model_sort_signals[NODE_FROM_ITER],
0, &iter, &node);
+ gtk_tree_path_free (path);
+
if (node == NULL)
{
return FALSE;
@@ -215,15 +217,19 @@ each_url_get_data_binder (EphyDragEachSelectedItemDataGet iteratee,
for (i = path_list; i != NULL; i = i->next)
{
GtkTreeIter iter;
- GtkTreePath *path = gtk_tree_row_reference_get_path (i->data);
+ GtkTreePath *path = NULL;
EphyNode *node = NULL;
const char *value;
+ path = gtk_tree_row_reference_get_path (i->data);
+
gtk_tree_model_get_iter (GTK_TREE_MODEL (model), &iter, path);
g_signal_emit (G_OBJECT (model),
ephy_tree_model_sort_signals[NODE_FROM_ITER],
0, &iter, &node);
+ gtk_tree_path_free (path);
+
if (node == NULL)
return;
@@ -248,15 +254,18 @@ each_node_get_data_binder (EphyDragEachSelectedItemDataGet iteratee,
for (i = path_list; i != NULL; i = i->next)
{
GtkTreeIter iter;
- GtkTreePath *path = gtk_tree_row_reference_get_path (i->data);
+ GtkTreePath *path = NULL;
EphyNode *node = NULL;
EphyNodeDb *db;
char *value;
+ path = gtk_tree_row_reference_get_path (i->data);
gtk_tree_model_get_iter (GTK_TREE_MODEL (model), &iter, path);
g_signal_emit (G_OBJECT (model),
ephy_tree_model_sort_signals[NODE_FROM_ITER],
0, &iter, &node);
+ gtk_tree_path_free (path);
+
if (node == NULL)
return;