[tracker: 22/30] extract: Do not leak info for unhandled files



commit cb8207910a6eb4b08c373088a1fc4efd1d7a35e9
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]