mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Free a few GtkTreePaths that were leaked.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17026 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -273,8 +273,11 @@ listen_for_account_events (QofInstance *entity, QofEventId event_type,
|
||||
path = gtk_tree_row_reference_get_path(tmp->data);
|
||||
gtk_tree_row_reference_free(tmp->data);
|
||||
if (!gtk_tree_model_get_iter(GTK_TREE_MODEL(qfb->list_store),
|
||||
&iter, path))
|
||||
&iter, path)) {
|
||||
gtk_tree_path_free(path);
|
||||
continue;
|
||||
}
|
||||
gtk_tree_path_free(path);
|
||||
gtk_tree_model_get(GTK_TREE_MODEL(qfb->list_store), &iter,
|
||||
ACCOUNT_POINTER, &account,
|
||||
-1);
|
||||
@@ -326,6 +329,7 @@ listen_for_account_events (QofInstance *entity, QofEventId event_type,
|
||||
&iter, path)) {
|
||||
gtk_list_store_remove(qfb->list_store, &iter);
|
||||
}
|
||||
gtk_tree_path_free(path);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -109,12 +109,12 @@ gnc_style_sheet_options_close_cb(GNCOptionWin * propertybox,
|
||||
|
||||
if (gtk_tree_row_reference_valid (ssi->row_ref)) {
|
||||
StyleSheetDialog * ss = gnc_style_sheet_dialog;
|
||||
if (gtk_tree_model_get_iter (GTK_TREE_MODEL(ss->list_store), &iter,
|
||||
gtk_tree_row_reference_get_path (ssi->row_ref)))
|
||||
GtkTreePath *path = gtk_tree_row_reference_get_path (ssi->row_ref);
|
||||
if (gtk_tree_model_get_iter (GTK_TREE_MODEL(ss->list_store), &iter, path))
|
||||
gtk_list_store_set (ss->list_store, &iter,
|
||||
COLUMN_DIALOG, NULL,
|
||||
-1);
|
||||
|
||||
gtk_tree_path_free(path);
|
||||
}
|
||||
gtk_tree_row_reference_free (ssi->row_ref);
|
||||
gnc_option_db_destroy(ssi->odb);
|
||||
|
||||
Reference in New Issue
Block a user