# HG changeset patch # User Daniel Atallah # Date 1191853554 0 # Node ID 3d0e4616eb395459ec53e5feeab7b8a25533561d # Parent db66eb25c3898d627da8d3c5408040900ca1334a Fix a leak when a bonjour account is disconnected. diff -r db66eb25c389 -r 3d0e4616eb39 libpurple/protocols/bonjour/bonjour.c --- 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; }