[tracker/gdbus-porting] Avoid memory allocation in thumbnailer
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus-porting] Avoid memory allocation in thumbnailer
- Date: Thu, 30 Dec 2010 11:34:29 +0000 (UTC)
commit 33aedae1ac5408b6cf10ff1f669f5bc5f254629d
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Dec 30 12:11:54 2010 +0100
Avoid memory allocation in thumbnailer
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]