[tracker/gdbus-porting: 11/65] libtracker-miner: Avoid memory alloc in tracker-thumbnailer.c



commit 9b22abd0ad529613c71edad58f7131d1045872f1
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Dec 30 12:11:54 2010 +0100

    libtracker-miner: Avoid memory alloc in tracker-thumbnailer.c

 src/libtracker-miner/tracker-thumbnailer.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-thumbnailer.c b/src/libtracker-miner/tracker-thumbnailer.c
index d2c9127..60a1a25 100644
--- a/src/libtracker-miner/tracker-thumbnailer.c
+++ b/src/libtracker-miner/tracker-thumbnailer.c
@@ -206,7 +206,7 @@ error_handler:
 		GStrv mime_types = NULL;
 		GStrv uri_schemes = NULL;
 
-		g_variant_get (v, "(^as^as)", &uri_schemes, &mime_types);
+		g_variant_get (v, "(^a&s^a&s)", &uri_schemes, &mime_types);
 
 		if (mime_types) {
 			GHashTable *hash;
@@ -240,8 +240,6 @@ error_handler:
 			private->service_is_available = TRUE;
 		}
 
-		g_strfreev (mime_types);
-		g_strfreev (uri_schemes);
 
 		g_variant_unref (v);
 	}



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