[PATCH] Update g_mapped_file_free calls to g_mapped_file_unref to keep up with glib
- From: Larry Reaves <larry yrral net>
- Subject: [PATCH] Update g_mapped_file_free calls to g_mapped_file_unref to keep up with glib
- Date: Fri, 19 Jun 2009 01:44:49 -0400
---
calendar/backends/file/e-cal-backend-file.c | 2 +-
calendar/backends/google/e-cal-backend-google.c | 2 +-
.../backends/groupwise/e-cal-backend-groupwise.c | 2 +-
libedataserver/e-xml-utils.c | 2 +-
libedataserver/md5-utils.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/calendar/backends/file/e-cal-backend-file.c b/calendar/backends/file/e-cal-backend-file.c
index 29284f7..4ac3572 100644
--- a/calendar/backends/file/e-cal-backend-file.c
+++ b/calendar/backends/file/e-cal-backend-file.c
@@ -2510,7 +2510,7 @@ fetch_attachments (ECalBackendSync *backend, ECalComponent *comp)
g_message ("DEBUG: attachment write failed.\n");
}
- g_mapped_file_free (mapped_file);
+ g_mapped_file_unref (mapped_file);
if (fd != -1)
close (fd);
dest_url = g_filename_to_uri (dest_file, NULL, NULL);
diff --git a/calendar/backends/google/e-cal-backend-google.c b/calendar/backends/google/e-cal-backend-google.c
index 845d6d3..1d8624a 100644
--- a/calendar/backends/google/e-cal-backend-google.c
+++ b/calendar/backends/google/e-cal-backend-google.c
@@ -523,7 +523,7 @@ fetch_attachments (ECalBackendGoogle *cbgo, ECalComponent *comp)
g_message ("DEBUG: attachment write failed.\n");
}
- g_mapped_file_free (mapped_file);
+ g_mapped_file_unref (mapped_file);
if (fd != -1)
close (fd);
dest_url = g_filename_to_uri (dest_file, NULL, NULL);
diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c
index aec0661..a2c46da 100644
--- a/calendar/backends/groupwise/e-cal-backend-groupwise.c
+++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c
@@ -2449,7 +2449,7 @@ fetch_attachments (ECalBackendGroupwise *cbgw, ECalComponent *comp)
g_message ("DEBUG: attachment write failed.\n");
}
- g_mapped_file_free (mapped_file);
+ g_mapped_file_unref (mapped_file);
if (fd != -1)
close (fd);
dest_url = g_filename_to_uri (dest_file, NULL, NULL);
diff --git a/libedataserver/e-xml-utils.c b/libedataserver/e-xml-utils.c
index 8901ce3..525627f 100644
--- a/libedataserver/e-xml-utils.c
+++ b/libedataserver/e-xml-utils.c
@@ -50,7 +50,7 @@ e_xml_parse_file (const gchar *filename)
if (mapped_file) {
result = xmlParseMemory (g_mapped_file_get_contents (mapped_file),
g_mapped_file_get_length (mapped_file));
- g_mapped_file_free (mapped_file);
+ g_mapped_file_unref (mapped_file);
}
return result;
}
diff --git a/libedataserver/md5-utils.c b/libedataserver/md5-utils.c
index 4ef3780..fee9e7b 100644
--- a/libedataserver/md5-utils.c
+++ b/libedataserver/md5-utils.c
@@ -362,5 +362,5 @@ md5_get_digest_from_file (const gchar *filename, guchar digest[16])
md5_get_digest (contents, length, digest);
- g_mapped_file_free (mapped_file);
+ g_mapped_file_unref (mapped_file);
}
--
1.6.0.4
--=-H9P91Ge7wiAsBUUQxfLU--
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]