[rhythmbox] Substitute deprecated glib symbol: g_mapped_file_free()
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] Substitute deprecated glib symbol: g_mapped_file_free()
- Date: Sat, 26 Dec 2009 09:02:16 +0000 (UTC)
commit 41af131fa874d362812a56421b695d4cd1f4117f
Author: Javier Jardón <jjardon gnome org>
Date: Fri Dec 4 00:22:21 2009 +0100
Substitute deprecated glib symbol: g_mapped_file_free()
Use g_mapped_file_unref() instead if glib >= 2.22 is available
plugins/daap/rb-daap-share.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/daap/rb-daap-share.c b/plugins/daap/rb-daap-share.c
index 608b4e5..3a9b8a9 100644
--- a/plugins/daap/rb-daap-share.c
+++ b/plugins/daap/rb-daap-share.c
@@ -1230,7 +1230,11 @@ static void
mapped_file_message_finished (SoupMessage *message, GMappedFile *file)
{
rb_debug ("finished sending mmapped file");
+#if GLIB_CHECK_VERSION (2,22,0)
+ g_mapped_file_unref (file);
+#else
g_mapped_file_free (file);
+#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]