[gtksourceview/gnome-2-28] Use g_mapped_file_unref in place of deprecated g_mapped_file_free.
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-2-28] Use g_mapped_file_unref in place of deprecated g_mapped_file_free.
- Date: Sat, 19 Dec 2009 11:16:58 +0000 (UTC)
commit 6c33587812c6db4498a7ed9aa1b5384514b47cab
Author: Michael Callahan <coder callahan gmail com>
Date: Sat Nov 28 10:28:35 2009 -0700
Use g_mapped_file_unref in place of deprecated g_mapped_file_free.
gtksourceview/gtksourcelanguage-parser-1.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcelanguage-parser-1.c b/gtksourceview/gtksourcelanguage-parser-1.c
index 92ee019..15dab3f 100644
--- a/gtksourceview/gtksourcelanguage-parser-1.c
+++ b/gtksourceview/gtksourcelanguage-parser-1.c
@@ -694,8 +694,11 @@ _gtk_source_language_file_parse_version1 (GtkSourceLanguage *language,
{
doc = xmlParseMemory (g_mapped_file_get_contents (mf),
g_mapped_file_get_length (mf));
-
+#if GLIB_CHECK_VERSION(2,22,0)
+ g_mapped_file_unref (mf);
+#else
g_mapped_file_free (mf);
+#endif
}
if (doc == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]