summaryrefslogtreecommitdiff
path: root/src
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
parentc86f130d7c337d7f1e3937d0a18b990fbbc5abed (diff)
fix addfiles threadfunc to use g_idle_add(), missed during earlier win32 changes.
Diffstat (limited to 'src')
-rw-r--r--src/trg-file-parser.c2
-rw-r--r--src/trg-torrent-add-dialog.c2
2 files changed, 3 insertions, 1 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)) {
diff --git a/src/trg-torrent-add-dialog.c b/src/trg-torrent-add-dialog.c
index fb0ba57..54f0684 100644
--- a/src/trg-torrent-add-dialog.c
+++ b/src/trg-torrent-add-dialog.c
@@ -157,7 +157,7 @@ static gpointer add_files_threadfunc(gpointer data)
files_thread_data->dir);
response = dispatch(files_thread_data->client, request);
- on_generic_interactive_action(response);
+ g_idle_add(on_generic_interactive_action, response);
}
g_str_slist_free(files_thread_data->list);