aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-07-06 07:57:24 +0800
committerChristian Persch <chpe@src.gnome.org>2003-07-06 07:57:24 +0800
commit2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6 (patch)
tree31fbf72c011dd71ac02de27bb1b7f857effb2ca7 /src/bookmarks
parentef8471f1c1829e864124d0025938ed1c8b8970c7 (diff)
downloadgsoc2013-epiphany-2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6.tar
gsoc2013-epiphany-2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6.tar.gz
gsoc2013-epiphany-2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6.tar.bz2
gsoc2013-epiphany-2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6.tar.lz
gsoc2013-epiphany-2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6.tar.xz
gsoc2013-epiphany-2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6.tar.zst
gsoc2013-epiphany-2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6.zip
Fix mem leaks and a conditional.
2003-07-06 Christian Persch <chpe@cvs.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_button_press_cb), (ephy_node_view_sort_func): * src/bookmarks/ephy-topics-selector.c: (topic_clicked), (topic_key_pressed): Fix mem leaks and a conditional.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-topics-selector.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c
index a43622cd5..9a2a72df5 100644
--- a/src/bookmarks/ephy-topics-selector.c
+++ b/src/bookmarks/ephy-topics-selector.c
@@ -307,7 +307,7 @@ topic_clicked (GtkTreeView *tree_view,
GdkEventButton *event,
EphyTopicsSelector *selector)
{
- GtkTreePath *path;
+ GtkTreePath *path = NULL;
if (event->window != gtk_tree_view_get_bin_window (tree_view))
return FALSE;
@@ -321,6 +321,7 @@ topic_clicked (GtkTreeView *tree_view,
gchar *path_str = gtk_tree_path_to_string (path);
topic_toggled (NULL, path_str, selector);
g_free(path_str);
+ gtk_tree_path_free (path);
}
return FALSE;
@@ -349,6 +350,7 @@ topic_key_pressed (GtkTreeView *tree_view,
path_str = gtk_tree_path_to_string (path);
topic_toggled (NULL, path_str, selector);
g_free(path_str);
+ gtk_tree_path_free (path);
}
return TRUE;