Work with old and new glib
Avoids "deprecated" warnings.
diff --git a/util/options.cc b/util/options.cc
index aa969a6..66b5e15 100644
--- a/util/options.cc
+++ b/util/options.cc
@@ -436,11 +436,11 @@
font_data = g_mapped_file_get_contents (mf);
len = g_mapped_file_get_length (mf);
if (len) {
- destroy = (hb_destroy_func_t) g_mapped_file_free;
+ destroy = (hb_destroy_func_t) g_mapped_file_unref;
user_data = (void *) mf;
mm = HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE;
} else
- g_mapped_file_free (mf);
+ g_mapped_file_unref (mf);
} else {
fail (false, "%s", error->message);
//g_error_free (error);