[tracker] Plug some leaks in libtracker-miner and tracker-miner-fs.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Plug some leaks in libtracker-miner and tracker-miner-fs.
- Date: Tue, 8 Sep 2009 16:24:03 +0000 (UTC)
commit b99f64aec4f2c700cf85277de51da46211dfda16
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Sep 8 18:22:34 2009 +0200
Plug some leaks in libtracker-miner and tracker-miner-fs.
src/libtracker-miner/tracker-miner-fs.c | 3 +++
src/tracker-miner-fs/tracker-miner-applications.c | 2 +-
src/tracker-miner-fs/tracker-miner-files.c | 2 ++
3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 4d45a5b..0d4b49a 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -895,12 +895,15 @@ item_queue_handlers_set_up (TrackerMinerFS *fs)
}
g_object_get (fs, "status", &status, NULL);
+
if (g_strcmp0 (status, _("Processing files")) != 0) {
/* Don't spam this */
g_message ("Processing files...");
g_object_set (fs, "status", _("Processing files"), NULL);
}
+ g_free (status);
+
fs->private->item_queues_handler_id =
g_idle_add (item_queue_handlers_cb,
fs);
diff --git a/src/tracker-miner-fs/tracker-miner-applications.c b/src/tracker-miner-fs/tracker-miner-applications.c
index 9bcde86..52af8b6 100644
--- a/src/tracker-miner-fs/tracker-miner-applications.c
+++ b/src/tracker-miner-fs/tracker-miner-applications.c
@@ -433,9 +433,9 @@ process_application_data_free (ProcessApplicationData *data)
g_object_unref (data->file);
g_object_unref (data->sparql);
g_object_unref (data->cancellable);
- g_slice_free (ProcessApplicationData, data);
g_key_file_free (data->key_file);
g_free (data->type);
+ g_slice_free (ProcessApplicationData, data);
}
static gboolean
diff --git a/src/tracker-miner-fs/tracker-miner-files.c b/src/tracker-miner-fs/tracker-miner-files.c
index c759181..36527ec 100644
--- a/src/tracker-miner-fs/tracker-miner-files.c
+++ b/src/tracker-miner-fs/tracker-miner-files.c
@@ -912,6 +912,7 @@ process_file_cb (GObject *object,
/* Something bad happened, notify about the error */
data->callback (TRACKER_MINER_FS (data->miner), file, sparql, error, data->callback_data);
process_file_data_free (data);
+ g_object_unref (file_info);
return;
}
@@ -966,6 +967,7 @@ process_file_cb (GObject *object,
/* Next step, getting embedded metadata */
get_embedded_metadata (data, uri, mime_type);
+ g_object_unref (file_info);
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]