Replace deprecated g_mapped_file_free() with recommended g_mapped_file_unref()

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22179 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff
2012-05-20 21:12:50 +00:00
parent e1956c80c7
commit 5fba6638e3
+3 -1
View File
@@ -354,7 +354,9 @@ void gnc_csv_parse_data_free(GncCsvParseData* parse_data)
/* All non-NULL pointers have been initialized and must be freed. */
if (parse_data->raw_mapping != NULL)
g_mapped_file_free(parse_data->raw_mapping);
{
g_mapped_file_unref(parse_data->raw_mapping);
}
if (parse_data->file_str.begin != NULL)
g_free(parse_data->file_str.begin);