[ESourceSelector] Fix a memory leak on a mouse button press event
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user