diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-08-10 11:13:54 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-08-16 09:02:51 +0200 |
commit | 2bac070afdc070e1dcbdc5b4bf7589293a8fdb86 (patch) | |
tree | 22f76dd3a37bad091b9ca595bc0fee23859535c7 /gobject-introspection | |
parent | 7b468bcc55d61b10fee9c872ecb3acb5413426e2 (diff) | |
download | vala-2bac070afdc070e1dcbdc5b4bf7589293a8fdb86.tar.gz |
g-i: Fix deprecation warnings
Diffstat (limited to 'gobject-introspection')
-rw-r--r-- | gobject-introspection/gmetadata.c | 2 | ||||
-rw-r--r-- | gobject-introspection/scanner.c | 2 |
2 files changed, 1 insertions, 3 deletions
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++) |