aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-01-25 00:54:18 +0800
committerMilan Crha <mcrha@redhat.com>2014-01-25 00:54:18 +0800
commit675fbf2e504d06df1f7b58b88ea4cee7df37d802 (patch)
treee3f6a1d1db6c328afebfb04457908f10648d569b
parent5cc855e2be8f515cad5389ea865a8a2b8b74578c (diff)
downloadgsoc2013-evolution-675fbf2e504d06df1f7b58b88ea4cee7df37d802.tar
gsoc2013-evolution-675fbf2e504d06df1f7b58b88ea4cee7df37d802.tar.gz
gsoc2013-evolution-675fbf2e504d06df1f7b58b88ea4cee7df37d802.tar.bz2
gsoc2013-evolution-675fbf2e504d06df1f7b58b88ea4cee7df37d802.tar.lz
gsoc2013-evolution-675fbf2e504d06df1f7b58b88ea4cee7df37d802.tar.xz
gsoc2013-evolution-675fbf2e504d06df1f7b58b88ea4cee7df37d802.tar.zst
gsoc2013-evolution-675fbf2e504d06df1f7b58b88ea4cee7df37d802.zip
[ESourceSelector] Fix a memory leak on a mouse button press event
-rw-r--r--e-util/e-source-selector.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/e-util/e-source-selector.c b/e-util/e-source-selector.c
index 43c6d453bd..1b4fd3897f 100644
--- a/e-util/e-source-selector.c
+++ b/e-util/e-source-selector.c
@@ -886,7 +886,7 @@ source_selector_button_press_event (GtkWidget *widget,
{
ESourceSelector *selector;
GtkWidgetClass *widget_class;
- GtkTreePath *path;
+ GtkTreePath *path = NULL;
ESource *source = NULL;
ESource *primary;
gboolean right_click = FALSE;
@@ -922,6 +922,9 @@ source_selector_button_press_event (GtkWidget *widget,
gtk_tree_model_get (model, &iter, COLUMN_SOURCE, &source, -1);
}
+ if (path)
+ gtk_tree_path_free (path);
+
if (source == NULL)
goto chainup;