binaryregistry: use function introduced in GLib 2.22 unconditionally

This commit is contained in:
Tim-Philipp Müller 2010-12-03 12:04:23 +00:00
parent 77830123cf
commit f4e57cee5d

View file

@ -611,11 +611,7 @@ Error:
g_timer_destroy (timer);
#endif
if (mapped) {
#if GLIB_CHECK_VERSION(2,21,3)
g_mapped_file_unref (mapped);
#else
g_mapped_file_free (mapped);
#endif
} else {
g_free (contents);
}