From b99f64aec4f2c700cf85277de51da46211dfda16 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 8 Sep 2009 18:22:34 +0200 Subject: 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 deletion(-) diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c index 4d45a5b6e..0d4b49a33 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 9bcde86da..52af8b647 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 c7591812b..36527ece3 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); } -- cgit v1.2.1