From c86f130d7c337d7f1e3937d0a18b990fbbc5abed Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sun, 18 Sep 2011 19:19:02 +0000 Subject: fix for non-existant torrent files --- src/trg-file-parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/trg-file-parser.c') diff --git a/src/trg-file-parser.c b/src/trg-file-parser.c index c79ec76..12f8b29 100644 --- a/src/trg-file-parser.c +++ b/src/trg-file-parser.c @@ -116,8 +116,9 @@ trg_torrent_file *trg_parse_torrent_file(const gchar *filename) mf = g_mapped_file_new(filename, FALSE, &error); if (error) { - g_error("%s",error->message); + g_message("%s",error->message); g_error_free(error); + g_mapped_file_unref(mf); return NULL; } else { top_node = be_decoden(g_mapped_file_get_contents(mf), g_mapped_file_get_length(mf)); -- cgit v1.2.3