diff --git a/unix/table.c b/unix/table.c index d1e6fe60b..e29ada07c 100644 --- a/unix/table.c +++ b/unix/table.c @@ -62,6 +62,7 @@ static void setEditable(uiTableModel *m, GtkTreeIter *iter, int modelColumn, Gtk // TODO avoid the need for this path = gtk_tree_model_get_path(GTK_TREE_MODEL(m), iter); row = gtk_tree_path_get_indices(path)[0]; + gtk_tree_path_free(path); editable = uiprivTableModelCellEditable(m, row, modelColumn) != 0; g_object_set(r, prop, editable, NULL); } @@ -256,6 +257,7 @@ static void progressBarColumnDataFunc(GtkTreeViewColumn *c, GtkCellRenderer *r, // TODO avoid the need for this path = gtk_tree_model_get_path(GTK_TREE_MODEL(m), iter); rc->row = gtk_tree_path_get_indices(path)[0]; + gtk_tree_path_free(path); rc->col = p->modelColumn; val = (gint *) g_hash_table_lookup(p->t->indeterminatePositions, rc); if (pval == -1) {