[tracker/gdbus-porting: 26/65] miners/fs: Fixes memory leaks in tracker-miner-files-index.c
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus-porting: 26/65] miners/fs: Fixes memory leaks in tracker-miner-files-index.c
- Date: Wed, 5 Jan 2011 16:35:19 +0000 (UTC)
commit 9731fbcd90263a5cc0a2a25d71f38319df2fbf4f
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Dec 31 10:20:20 2010 +0100
miners/fs: Fixes memory leaks in tracker-miner-files-index.c
src/miners/fs/tracker-miner-files-index.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files-index.c b/src/miners/fs/tracker-miner-files-index.c
index e03c72b..be52602 100644
--- a/src/miners/fs/tracker-miner-files-index.c
+++ b/src/miners/fs/tracker-miner-files-index.c
@@ -272,6 +272,7 @@ tracker_miner_files_index_reindex_mime_types (TrackerMinerFilesIndex *miner,
connection = tracker_sparql_connection_get (NULL, &inner_error);
if (!connection) {
+ g_free (mime_types);
tracker_dbus_request_end (request, inner_error);
g_dbus_method_invocation_return_gerror (invocation, inner_error);
g_error_free (inner_error);
@@ -313,6 +314,7 @@ tracker_miner_files_index_reindex_mime_types (TrackerMinerFilesIndex *miner,
g_string_free (query, TRUE);
g_object_unref (connection);
+ g_free (mime_types);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]