[tracker/gdbus: 20/74] libtracker-miner: Fixes memory leaks in tracker-thumbnailer.c



commit d44c38e6b243f5e655cfb7366d9a16fa0b40ca5f
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Dec 31 10:20:06 2010 +0100

    libtracker-miner: Fixes memory leaks in tracker-thumbnailer.c

 src/libtracker-miner/tracker-thumbnailer.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-thumbnailer.c b/src/libtracker-miner/tracker-thumbnailer.c
index 60a1a25..ea5a6df 100644
--- a/src/libtracker-miner/tracker-thumbnailer.c
+++ b/src/libtracker-miner/tracker-thumbnailer.c
@@ -215,7 +215,7 @@ error_handler:
 			guint i;
 
 			/* The table that you receive may contain duplicate mime-types, because
-		 	* they are grouped against the uri_schemes table */
+			 * they are grouped against the uri_schemes table */
 
 			hash = g_hash_table_new (g_str_hash, g_str_equal);
 
@@ -240,6 +240,8 @@ error_handler:
 			private->service_is_available = TRUE;
 		}
 
+		g_free (mime_types);
+		g_free (uri_schemes);
 
 		g_variant_unref (v);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]