1b986b
--- a/src/itdb_itunesdb.c
1b986b
+++ b/src/itdb_itunesdb.c
1b986b
@@ -1156,6 +1156,7 @@
1b986b
     GHashTable *pc_dict, *track_dict;
1b986b
     GValue *to_parse;
1b986b
     GArray *array;
1b986b
+    GValue value;
1b986b
     gint i;
1b986b
     guint32 mac_time;
1b986b
     guint64 *dbid;
1b986b
@@ -1175,11 +1176,12 @@
1b986b
 
1b986b
     array = (GArray*)g_value_get_boxed (to_parse);
1b986b
     for (i = 0; i < array->len; i++) {
1b986b
-       if (!G_VALUE_HOLDS (g_array_index (array, GValue *, i), G_TYPE_HASH_TABLE)) {
1b986b
+       value = g_array_index (array, GValue, i);
1b986b
+       if (!G_VALUE_HOLDS (&value, G_TYPE_HASH_TABLE)) {
1b986b
           continue;
1b986b
        }
1b986b
 
1b986b
-       track_dict = g_value_get_boxed (g_array_index (array, GValue *, i));
1b986b
+       track_dict = g_value_get_boxed (&value);
1b986b
        if (track_dict == NULL)
1b986b
            continue;