From 2ed547c52d8c9bde77dd0d95ddd6e32a9149b6d6 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 5 Jul 2003 23:57:24 +0000 Subject: Fix mem leaks and a conditional. 2003-07-06 Christian Persch * 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. --- src/bookmarks/ephy-topics-selector.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3