plug memory leaks

This commit is contained in:
Christopher Lam
2021-02-22 18:16:16 +08:00
parent b2b8792110
commit 0a22f688a6
3 changed files with 5 additions and 0 deletions

View File

@@ -234,6 +234,7 @@ lv_show_splits_free (GNCLotViewer *lv)
/* display list */ /* display list */
gnc_split_viewer_fill(lv, lv->split_free_store, g_list_reverse (filtered_list)); gnc_split_viewer_fill(lv, lv->split_free_store, g_list_reverse (filtered_list));
g_list_free (filtered_list);
} }
/* ======================================================================== */ /* ======================================================================== */

View File

@@ -3785,6 +3785,7 @@ gnc_plugin_page_register_cmd_print_check (GtkAction* action,
} }
} }
gnc_ui_print_check_dialog_create (window, splits); gnc_ui_print_check_dialog_create (window, splits);
g_list_free (splits);
} }
else else
{ {
@@ -5368,6 +5369,7 @@ gppr_account_destroy_cb (Account* account)
page = (GncPluginPageRegister*)item->data; page = (GncPluginPageRegister*)item->data;
gnc_main_window_close_page (GNC_PLUGIN_PAGE (page)); gnc_main_window_close_page (GNC_PLUGIN_PAGE (page));
} }
g_list_free (kill);
} }
/** This function is the handler for all event messages from the /** This function is the handler for all event messages from the

View File

@@ -2677,6 +2677,7 @@ gnc_plugin_page_register2_cmd_print_check (GtkAction *action,
} }
} }
gnc_ui_print_check_dialog_create (window, splits); gnc_ui_print_check_dialog_create (window, splits);
g_list_free (splits);
} }
else else
{ {
@@ -4027,6 +4028,7 @@ gppr_account_destroy_cb (Account *account)
page = (GncPluginPageRegister2 *)item->data; page = (GncPluginPageRegister2 *)item->data;
gnc_main_window_close_page(GNC_PLUGIN_PAGE(page)); gnc_main_window_close_page(GNC_PLUGIN_PAGE(page));
} }
g_list_free (kill);
} }
/** This function is the handler for all event messages from the /** This function is the handler for all event messages from the