GTK: Plug a memory leak
X-Scintilla-Bug-URL: https://sourceforge.net/p/scintilla/bugs/1825/ X-Scintilla-Commit-ID: 4f96ed32ebb94809ca419c0f77d37de41984cf76
This commit is contained in:
parent
ead0e9ee5f
commit
2723727ecd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user