From 2723727ecdcc124f87f914ffe1018e4eb6d044a3 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 27 Apr 2016 16:01:17 +0200 Subject: [PATCH] GTK: Plug a memory leak X-Scintilla-Bug-URL: https://sourceforge.net/p/scintilla/bugs/1825/ X-Scintilla-Commit-ID: 4f96ed32ebb94809ca419c0f77d37de41984cf76 --- scintilla/gtk/PlatGTK.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/scintilla/gtk/PlatGTK.cxx b/scintilla/gtk/PlatGTK.cxx index 09752293..ed184496 100644 --- a/scintilla/gtk/PlatGTK.cxx +++ b/scintilla/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;