Merge Richard Cohen's 'fix-memleaks' into master.

This commit is contained in:
John Ralls 2023-01-26 12:52:21 -08:00
commit 44f4b55927
4 changed files with 9 additions and 7 deletions

View File

@ -2502,7 +2502,6 @@ gnc_split_reg_determine_read_only( GNCSplitReg *gsr, gboolean show_dialog )
if ( !gsr->read_only )
{
dialog_args *args;
char *string = NULL;
reg = gnc_ledger_display_get_split_register( gsr->ledger );
if(reg->mismatched_commodities)
@ -2539,12 +2538,15 @@ gnc_split_reg_determine_read_only( GNCSplitReg *gsr, gboolean show_dialog )
}
}
gsr->read_only = TRUE;
/* Put up a warning dialog */
args = g_malloc(sizeof(dialog_args));
args->string = string;
args->gsr = gsr;
if (show_dialog)
{
/* Put up a warning dialog */
dialog_args *args = g_malloc(sizeof(dialog_args));
args->string = string;
args->gsr = gsr;
g_timeout_add (250, gtk_callback_bug_workaround, args); /* 0.25 seconds */
}
}
/* Make the contents immutable */

View File

@ -1239,7 +1239,6 @@ gnc_ab_imexporter_list (AB_BANKING* api)
pd = GWEN_PluginDescription_List2Iterator_Next(ilit))
{
AB_Node_Pair *node = NULL;
GWEN_BUFFER *tbuf = GWEN_Buffer_new(0, 256, 0, 1);
node = g_slice_new (AB_Node_Pair);
node->name = g_strdup(GWEN_PluginDescription_GetName(pd));

View File

@ -832,7 +832,7 @@ gnc_gen_trans_assign_transfer_account (GtkTreeView *treeview,
old_acc = gnc_import_TransInfo_get_destacc (trans_info);
if (*first)
{
gchar *acc_full_name = gnc_account_get_full_name (*new_acc);
gchar *acc_full_name;
ok_pressed = FALSE;
*new_acc = gnc_import_select_account (info->main_widget,
NULL,

View File

@ -195,6 +195,7 @@ _br_find_exe (Gnc_GbrInitError *error)
result = g_strdup (result);
fclose (f);
g_free (line);
return result;
#endif /* ENABLE_BINRELOC */
}