purple: workaround for buddy list menu memory leaks
commit169dab1f09552b084a9c50ae68d567a1edb6a625
authorStefan Becker <stefan.becker@nokia.com>
Sat, 11 Sep 2010 16:58:09 +0000 (11 19:58 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Sat, 11 Sep 2010 16:58:09 +0000 (11 19:58 +0300)
tree4e04f27b32cf7f09247b2e56d402b3921a0050e4
parent589542ed71a6a0c285429bf3d0da9c5e0dcd556c
purple: workaround for buddy list menu memory leaks

There is no libpurple API to release resources allocated during the
blist_node_menu() callback. pidgin-sipe allocates access levels containers
and therefore leaks memory on each invocation of the buddy context menu.

See also: <http://developer.pidgin.im/ticket/12597>

As a workaround we now keep a list of all containers allocated during the
callback. We free them when we enter the callback the next time or the account
is disconnected. So we have unused resources after the buddy menu closes but
at least we don't leak anymore...
ChangeLog
src/core/sipe-core-private.h
src/core/sipe.c