mirror of
				https://github.com/Gnucash/gnucash.git
				synced 2025-02-25 18:55:30 -06:00 
			
		
		
		
	Merge Richard Cohen's 'fix-memleaks' into master.
This commit is contained in:
		| @@ -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 */ | ||||
|   | ||||
| @@ -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)); | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
| @@ -195,6 +195,7 @@ _br_find_exe (Gnc_GbrInitError *error) | ||||
|  | ||||
|     result = g_strdup (result); | ||||
|     fclose (f); | ||||
|     g_free (line); | ||||
|     return result; | ||||
| #endif /* ENABLE_BINRELOC */ | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user