soc.2009.vulture: 6ddacf16: Need to take a new reference to remove a...
gdick at soc.pidgin.im
gdick at soc.pidgin.im
Tue Aug 4 16:06:46 EDT 2009
-----------------------------------------------------------------
Revision: 6ddacf16a5e89800622008772c32bc2f7625b096
Ancestor: 643090673de0c83ad8f9880e40268444586abf11
Author: gdick at soc.pidgin.im
Date: 2009-08-04T19:51:17
Branch: im.pidgin.soc.2009.vulture
URL: http://d.pidgin.im/viewmtn/revision/info/6ddacf16a5e89800622008772c32bc2f7625b096
Modified files:
vulture/purpleblist.c vulture/vultureblist.c
ChangeLog:
Need to take a new reference to remove a buddy-list node from the tree view.
-------------- next part --------------
============================================================
--- vulture/purpleblist.c 2f5388abdfb2297fc2f094c9942a69f29ac1f073
+++ vulture/purpleblist.c 435ba5b519f27e7c353e505b75a55cba78ccfc1e
@@ -163,6 +163,7 @@ void PurpleBlistUpdateNode(PurpleBuddyLi
}
else if(lpvbn->hti)
{
+ VultureBListNodeAddRef(lpvbn);
VulturePostUIMessage(VUIMSG_REMOVEBLISTNODE, lpvbn);
/* The parent may need to go, too. */
@@ -241,7 +242,10 @@ void PurpleBlistRemoveNode(PurpleBuddyLi
lpvbn->lpblistnode = NULL;
if(lpvbn->hti)
+ {
+ VultureBListNodeAddRef(lpvbn);
VulturePostUIMessage(VUIMSG_REMOVEBLISTNODE, lpvbn);
+ }
/* The parent may need to go, too. */
if(lpvbn->lpvbnParent && lpvbn->lpvbnParent->hti)
============================================================
--- vulture/vultureblist.c 78f3432457999c2373511eb7cdb686173803ed6e
+++ vulture/vultureblist.c 3028c9f2eb7a181da2e7040b0a010f141b973acd
@@ -297,6 +297,7 @@ static LRESULT CALLBACK MainWndProc(HWND
case VUIMSG_REMOVEBLISTNODE:
RemoveBListNode(GetDlgItem(g_hwndBListDlg, IDC_TREE_BLIST), (VULTURE_BLIST_NODE*)lParam);
+ VultureBListNodeRelease((VULTURE_BLIST_NODE*)lParam);
break;
case VUIMSG_NEWCONVERSATION:
More information about the Commits
mailing list