From 2bac070afdc070e1dcbdc5b4bf7589293a8fdb86 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 10 Aug 2017 11:13:54 +0200 Subject: g-i: Fix deprecation warnings --- gobject-introspection/gmetadata.c | 2 +- gobject-introspection/scanner.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'gobject-introspection') diff --git a/gobject-introspection/gmetadata.c b/gobject-introspection/gmetadata.c index b68039043..963f9fe08 100644 --- a/gobject-introspection/gmetadata.c +++ b/gobject-introspection/gmetadata.c @@ -1845,7 +1845,7 @@ void g_metadata_free (GMetadata *metadata) { if (metadata->mfile) - g_mapped_file_free (metadata->mfile); + g_mapped_file_unref (metadata->mfile); else if (metadata->owns_memory) g_free (metadata->data); diff --git a/gobject-introspection/scanner.c b/gobject-introspection/scanner.c index 34728c115..b7fa84ff2 100644 --- a/gobject-introspection/scanner.c +++ b/gobject-introspection/scanner.c @@ -1781,8 +1781,6 @@ main (int argc, char **argv) cpp_options = g_list_reverse (cpp_options); libraries = g_list_reverse (libraries); - g_type_init (); - if (include_idls) { for (i = 0; i < g_strv_length (include_idls); i++) -- cgit v1.2.1