Commit e09d562e authored by Daniel Trebbien's avatar Daniel Trebbien Committed by Paolo Borelli

Fix a memory leak

In menu_position(), free the GtkTreePath that was returned by
get_current_path().

https://bugzilla.gnome.org/show_bug.cgi?id=669917
parent 7638d411
......@@ -771,18 +771,16 @@ menu_position (GtkMenu *menu,
w = panel->priv->treeview;
path = get_current_path (panel);
gtk_tree_view_get_cell_area (GTK_TREE_VIEW (w),
path,
NULL,
&rect);
gtk_tree_path_free (path);
wy = rect.y;
gdk_window_get_origin (gtk_widget_get_window (w), x, y);
gtk_widget_get_preferred_size (GTK_WIDGET (menu), &requisition, NULL);
gtk_widget_get_allocation (w, &allocation);
if (gtk_widget_get_direction (w) == GTK_TEXT_DIR_RTL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment