summaryrefslogtreecommitdiff
path: root/src/trg-file-parser.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-18 20:11:30 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-18 20:11:30 +0000
commitc78040dbcfe4c40304944520e0eb4b46dda1e089 (patch)
tree6b846e6cb9bb3a70ebf3503760f9e4b8fd5a807c /src/trg-file-parser.c
parentc86f130d7c337d7f1e3937d0a18b990fbbc5abed (diff)
fix addfiles threadfunc to use g_idle_add(), missed during earlier win32 changes.
Diffstat (limited to 'src/trg-file-parser.c')
-rw-r--r--src/trg-file-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trg-file-parser.c b/src/trg-file-parser.c
index 12f8b29..0a4a8c0 100644
--- a/src/trg-file-parser.c
+++ b/src/trg-file-parser.c
@@ -124,6 +124,8 @@ trg_torrent_file *trg_parse_torrent_file(const gchar *filename)
top_node = be_decoden(g_mapped_file_get_contents(mf), g_mapped_file_get_length(mf));
}
+ g_mapped_file_unref(mf);
+
if (!top_node) {
return NULL;
} else if (be_validate_node(top_node, BE_DICT)) {