Mercurial > pidgin.yaz
changeset 20829:3d0e4616eb39
Fix a leak when a bonjour account is disconnected.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 08 Oct 2007 14:25:54 +0000 |
parents | db66eb25c389 |
children | 3e4c4a33ea35 |
files | libpurple/protocols/bonjour/bonjour.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/bonjour.c Mon Oct 08 10:55:34 2007 +0000 +++ b/libpurple/protocols/bonjour/bonjour.c Mon Oct 08 14:25:54 2007 +0000 @@ -188,6 +188,8 @@ if (bonjour_group != NULL) purple_blist_remove_group(bonjour_group); + g_free(bd); + connection->proto_data = NULL; } static const char * @@ -581,7 +583,7 @@ fullname = g_utf16_to_utf8(username, -1, NULL, NULL, NULL); } - g_idle_add(_set_default_name_cb, fullname); + purple_timeout_add(0, _set_default_name_cb, fullname); return NULL; }