[totem-pl-parser] Use g_mapped_file_unref() instead of _free()



commit 57de94db5b11d2aa12af139782a107ecf3d57c71
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 17 15:32:45 2009 +0100

    Use g_mapped_file_unref() instead of _free()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=595471

 configure.in              |    2 +-
 plparse/totem-pl-parser.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index 6947946..71b10e3 100644
--- a/configure.in
+++ b/configure.in
@@ -35,7 +35,7 @@ AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal])
 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
 
 # Requirements
-GLIB_REQS=2.16.3
+GLIB_REQS=2.21.6
 GIO_REQS=2.17.3
 DBUS_REQS=0.61
 
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 75464e2..eebc2e8 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -2413,7 +2413,7 @@ totem_pl_parser_can_parse_from_filename (const char *filename, gboolean debug)
 		(g_mapped_file_get_contents (map),
 		 g_mapped_file_get_length (map), debug);
 
-	g_mapped_file_free (map);
+	g_mapped_file_unref (map);
 
 	return retval;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]