[vala] g-i: Fix deprecation warnings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] g-i: Fix deprecation warnings
- Date: Wed, 16 Aug 2017 07:49:26 +0000 (UTC)
commit 2bac070afdc070e1dcbdc5b4bf7589293a8fdb86
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Aug 10 11:13:54 2017 +0200
g-i: Fix deprecation warnings
gobject-introspection/gmetadata.c | 2 +-
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 b680390..963f9fe 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 34728c1..b7fa84f 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++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]