Commit 525347d9 authored by Javier Jardón's avatar Javier Jardón Committed by Sven Neumann

Remove deprecated glib symbol: g_mapped_free

parent 659cf374
......@@ -176,11 +176,7 @@ gimp_scanner_destroy (GScanner *scanner)
data = scanner->user_data;
if (data->file)
#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (data->file);
#else
g_mapped_file_free (data->file);
#endif
g_free (data->name);
g_slice_free (GimpScannerData, data);
......
......@@ -339,11 +339,7 @@ load_wmf_size (const gchar *filename,
success = FALSE;
wmf_mem_close (API);
#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
#else
g_mapped_file_free (file);
#endif
if (width < 1 || height < 1)
{
......@@ -874,11 +870,7 @@ wmf_get_pixbuf (const gchar *filename,
wmf_api_destroy (API);
}
#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
#else
g_mapped_file_free (file);
#endif
return pixels;
}
......@@ -963,11 +955,7 @@ wmf_load_file (const gchar *filename,
wmf_api_destroy (API);
}
#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
#else
g_mapped_file_free (file);
#endif
/* FIXME: improve error message */
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
......
......@@ -836,11 +836,7 @@ lcms_image_set_profile (gint32 image,
g_mapped_file_get_length (file),
g_mapped_file_get_contents (file));
#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
#else
g_mapped_file_free (file);
#endif
gimp_image_parasite_attach (image, parasite);
gimp_parasite_free (parasite);
......@@ -1133,11 +1129,7 @@ lcms_load_profile (const gchar *filename,
gimp_filename_to_utf8 (filename));
}
#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
#else
g_mapped_file_free (file);
#endif
return profile;
}
......
......@@ -706,11 +706,7 @@ to64 (const gchar *filename,
bytes = g_base64_encode_close (TRUE, out, &state, &save);
fwrite (out, 1, bytes, outfile);
#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (infile);
#else
g_mapped_file_free (infile);
#endif
return TRUE;
}
......
......@@ -76,11 +76,7 @@ jpeg_exif_data_new_from_file (const gchar *filename,
data = exif_data_new_from_data ((guchar *) g_mapped_file_get_contents (file),
g_mapped_file_get_length (file));
#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
#else
g_mapped_file_free (file);
#endif
return data;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment