[tracker/wip/passive-extraction] extract: Do not leak info for unhandled files
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/passive-extraction] extract: Do not leak info for unhandled files
- Date: Mon, 20 Jan 2014 19:20:19 +0000 (UTC)
commit e79afe841fe17ffb995123f0d2e8de85b2369639
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jan 20 20:05:44 2014 +0100
extract: Do not leak info for unhandled files
If no extraction module was found for a file, the corresponding
TrackerExtractTask was being leaked.
src/tracker-extract/tracker-extract.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index ece7398..2f06924 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -659,6 +659,7 @@ dispatch_task_cb (TrackerExtractTask *task)
if (!module || !task->cur_func) {
g_warning ("Discarding task with no module '%s'", task->file);
priv->unhandled_count++;
+ extract_task_free (task);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]