[evolution] [ESourceSelector] Fix a memory leak on a mouse button press event
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] [ESourceSelector] Fix a memory leak on a mouse button press event
- Date: Fri, 24 Jan 2014 16:55:00 +0000 (UTC)
commit 675fbf2e504d06df1f7b58b88ea4cee7df37d802
Author: Milan Crha <mcrha redhat com>
Date: Fri Jan 24 17:54:18 2014 +0100
[ESourceSelector] Fix a memory leak on a mouse button press event
e-util/e-source-selector.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-source-selector.c b/e-util/e-source-selector.c
index 43c6d45..1b4fd38 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]