summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Hasselmann <hasselmm@gnome.org>2009-10-25 13:35:51 +0100
committerMathias Hasselmann <hasselmm@gnome.org>2009-10-25 13:35:51 +0100
commit52123a8d88a88d32070d07e196c073ebbbe79c28 (patch)
tree3cdb7c9051071b45cf8b4a1293e2023ed6914433
parentbcf76e921394dbfd13d9d59ac982dd13bc5c68cd (diff)
Fix a crash when updating profiles.
* src/facebook-connection.c (_update_profiles): Seems like the aliases array's member are freed by the callee.
-rw-r--r--src/facebook-connection.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/facebook-connection.c b/src/facebook-connection.c
index d8f4c92..3254668 100644
--- a/src/facebook-connection.c
+++ b/src/facebook-connection.c
@@ -474,7 +474,6 @@ _update_profiles (GruschlerFacebookConnection *self,
GValue entry = { 0, };
GPtrArray *aliases;
TpHandle handle;
- int i;
g_value_init (&entry, TP_STRUCT_TYPE_ALIAS_PAIR);
g_value_take_boxed (&entry, dbus_g_type_specialized_construct
@@ -508,11 +507,8 @@ _update_profiles (GruschlerFacebookConnection *self,
}
tp_svc_connection_interface_aliasing_emit_aliases_changed (self, aliases);
-
- for (i = 0; aliases->len; ++i)
- g_boxed_free (TP_STRUCT_TYPE_ALIAS_PAIR, aliases->pdata[i]);
-
g_ptr_array_free (aliases, TRUE);
+
g_value_unset (&entry);
}