libpurple/protocols/zephyr/init_et.c@a189fa1292c9
libpurple/protocols/zephyr/init_et.c
Mon, 28 Feb 2011 07:12:27 +0000
- author
- Mark Doliner <markdoliner@pidgin.im>
- date
- Mon, 28 Feb 2011 07:12:27 +0000
- changeset 31482
- a189fa1292c9
- parent 15435
-
4b933b06d75e
- child 16238
-
33bf2fd32108
- child 18068
-
b6554e3c8224
- child 20478
-
46933dc62880
- permissions
- -rw-r--r--
Fix a memleak in the MSN prpl when removing a buddy from your buddy list.
We needed to call msn_user_unref() after calling msn_userlist_remove_user()
I chose to fix this by changing msn_userlist_add_user() and
msn_userlist_remove_user() to incremend and decrement the reference counter
themselves--after all, they ARE the ones who add/remove a reference to
the MsnUser struct. Conceptually I thought this made the most sense.
/*
* Copyright 1986, 1987, 1988 by MIT Information Systems and
* the MIT Student Information Processing Board.
*
* For copyright info, see mit-sipb-copyright.h.
*/
#include <sysdep.h>
extern struct et_list * _et_list;