# HG changeset patch # User Mark Doliner # Date 1166171008 0 # Node ID 717935e035ca73879f5538fcb6ddcb4c4e184ae2 # Parent ae58cf5a441fff9e5fdb8d2abd475f233b93c167 [gaim-migrate @ 18007] If status.xml contained a substatus without an account for whatever reason, then we were registering a GaimSavedStatusSub with dbus, freeing it shortly therafter, but not unregistering it with dbus. committer: Tailor Script diff -r ae58cf5a441f -r 717935e035ca libgaim/savedstatuses.c --- a/libgaim/savedstatuses.c Fri Dec 15 07:46:08 2006 +0000 +++ b/libgaim/savedstatuses.c Fri Dec 15 08:23:28 2006 +0000 @@ -373,7 +373,6 @@ char *data; ret = g_new0(GaimSavedStatusSub, 1); - GAIM_DBUS_REGISTER_POINTER(ret, GaimSavedStatusSub); /* Read the account */ node = xmlnode_get_child(substatus, "account"); @@ -410,6 +409,7 @@ ret->message = data; } + GAIM_DBUS_REGISTER_POINTER(ret, GaimSavedStatusSub); return ret; } @@ -447,7 +447,6 @@ int i; ret = g_new0(GaimSavedStatus, 1); - GAIM_DBUS_REGISTER_POINTER(ret, GaimSavedStatus); attrib = xmlnode_get_attrib(status, "transient"); if ((attrib == NULL) || (strcmp(attrib, "true"))) @@ -506,6 +505,7 @@ ret->substatuses = g_list_prepend(ret->substatuses, new); } + GAIM_DBUS_REGISTER_POINTER(ret, GaimSavedStatus); return ret; }