commit c77a4b233e2905e4a99348064c8d89aacc9f895c
Author: Jonathan Neuschäfer <j.n...@gm...>
Date: Thu Sep 27 20:15:03 2012 +0200
replace deprecated g_mapped_file_free()
g_mapped_file_free is deprecated since GLib 2.22
src/db-parse-context.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/db-parse-context.c b/src/db-parse-context.c
index 88009c9..789b3e9 100644
--- a/src/db-parse-context.c
+++ b/src/db-parse-context.c
@@ -64,7 +64,7 @@ db_parse_context_destroy (DBParseContext *ctx)
g_return_if_fail (ctx != NULL);
if (ctx->mapped_file) {
- g_mapped_file_free(ctx->mapped_file);
+ g_mapped_file_unref(ctx->mapped_file);
}
g_free (ctx);
@@ -215,7 +215,7 @@ db_parse_context_new_from_file (const char *filename, Itdb_DB *db)
device->byte_order);
if (ctx == NULL) {
- g_mapped_file_free(mapped_file);
+ g_mapped_file_unref(mapped_file);
return NULL;
}
ctx->db = db;
|