[Galago-commits] r2695 - in trunk/libgalago: . libgalago tests
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Mon Apr 10 00:53:38 PDT 2006
Author: chipx86
Date: 2006-04-10 00:53:36 -0700 (Mon, 10 Apr 2006)
New Revision: 2695
Modified:
trunk/libgalago/ChangeLog
trunk/libgalago/libgalago/galago-context.c
trunk/libgalago/tests/presence-feed.c
Log:
Fix a bug where GalagoPerson objects sometimes weren't being cleared from the context. This led to crashes upon re-registration, among other places.
Modified: trunk/libgalago/ChangeLog
===================================================================
--- trunk/libgalago/ChangeLog 2006-04-10 07:35:36 UTC (rev 2694)
+++ trunk/libgalago/ChangeLog 2006-04-10 07:53:36 UTC (rev 2695)
@@ -1,3 +1,10 @@
+Mon Apr 10 00:53:03 PDT 2006 Christian Hammond <chipx86 at chipx86.com>
+
+ * libgalago/galago-context.c:
+ - Fix a bug where GalagoPerson objects sometimes weren't being
+ cleared from the context. This led to crashes upon re-registration,
+ among other places.
+
Sun Apr 09 23:07:05 PDT 2006 Christian Hammond <chipx86 at chipx86.com>
* tests/Makefile.am:
Modified: trunk/libgalago/libgalago/galago-context.c
===================================================================
--- trunk/libgalago/libgalago/galago-context.c 2006-04-10 07:35:36 UTC (rev 2694)
+++ trunk/libgalago/libgalago/galago-context.c 2006-04-10 07:53:36 UTC (rev 2695)
@@ -450,12 +450,7 @@
PersonCacheKey key;
GalagoContext *context = galago_context_get();
const char *id = galago_person_get_id(person);
- const char *old_id = g_object_get_data(G_OBJECT(person),
- "_galago_old_id");
- if (old_id == NULL)
- return;
-
key.id = (id == NULL ? NULL : g_ascii_strdown(id, -1));
key.session_id = g_strdup(galago_person_get_session_id(person));
key.origin = galago_object_get_origin(GALAGO_OBJECT(person));
Modified: trunk/libgalago/tests/presence-feed.c
===================================================================
--- trunk/libgalago/tests/presence-feed.c 2006-04-10 07:35:36 UTC (rev 2694)
+++ trunk/libgalago/tests/presence-feed.c 2006-04-10 07:53:36 UTC (rev 2695)
@@ -53,8 +53,8 @@
galago_presence_add_status(presence, status);
/* Add contacts to our AIM account */
- person = galago_create_person("gonkulator-1");
- contact = galago_service_create_account(aim_service, person, "lottabs2");
+ person = galago_create_person(NULL);
+ contact = galago_service_create_account(aim_service, person, "ukeAco");
presence = galago_account_create_presence(contact);
galago_presence_set_idle(presence, TRUE, time(NULL));
More information about the galago-commits
mailing list