Skip to content

Commit 23cbd82

Browse files
committed
[Gtk] Ensure gtk_tree_path_free is called before returning
Fixes an issue in #2472
1 parent 7aed5df commit 23cbd82

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ long cellDataProc (long tree_column, long cell, long tree_model, long iter, long
199199
int [] index = new int [1];
200200
C.memmove (index, GTK.gtk_tree_path_get_indices (path), 4);
201201
TableItem item = _getItem (index[0]);
202+
GTK.gtk_tree_path_free (path);
202203
if (item.isDisposed()) {
203204
return 0;
204205
}
205-
GTK.gtk_tree_path_free (path);
206206
if (item != null) OS.g_object_set_qdata (cell, Display.SWT_OBJECT_INDEX2, item.handle);
207207
boolean isPixbuf = GTK.GTK_IS_CELL_RENDERER_PIXBUF (cell);
208208
boolean isText = GTK.GTK_IS_CELL_RENDERER_TEXT (cell);

0 commit comments

Comments
 (0)