From 66d16bf968a861fa232d73df7661b9297826c3ab Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 27 Apr 2016 16:01:17 +0200 Subject: GTK: Plug a memory leak --- gtk/PlatGTK.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 09752293f..ed1844963 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1494,6 +1494,7 @@ int ListBoxX::GetRowHeight() GdkRectangle rect; GtkTreePath *path = gtk_tree_path_new_first(); gtk_tree_view_get_background_area(GTK_TREE_VIEW(list), path, NULL, &rect); + gtk_tree_path_free(path); return rect.height; #else int row_height=0; -- cgit v1.2.3