[grilo-plugins] tracker: don't use slice allocation for static datas
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tracker: don't use slice allocation for static datas
- Date: Thu, 17 Mar 2011 20:37:43 +0000 (UTC)
commit 8b82cc2401fd3fa9cff4220f2afaa3be8b2a5734
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date: Wed Mar 16 10:23:39 2011 +0000
tracker: don't use slice allocation for static datas
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
src/media/tracker/grl-tracker-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/media/tracker/grl-tracker-utils.c b/src/media/tracker/grl-tracker-utils.c
index bd469e3..aacbb66 100644
--- a/src/media/tracker/grl-tracker-utils.c
+++ b/src/media/tracker/grl-tracker-utils.c
@@ -51,7 +51,7 @@ insert_key_mapping (GrlKeyID grl_key,
const gchar *sparql_key_attr,
const gchar *sparql_key_flavor)
{
- tracker_grl_sparql_t *assoc = g_slice_new0 (tracker_grl_sparql_t);
+ tracker_grl_sparql_t *assoc = g_new0 (tracker_grl_sparql_t, 1);
GList *assoc_list = g_hash_table_lookup (grl_to_sparql_mapping, grl_key);
gchar *canon_name = g_strdup (g_param_spec_get_name (grl_key));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]