pidgin/pidgin

Don't leak simple watcher structs.

2019-10-25, Elliott Sales de Andrade
3f61b0cd94de
Parents b5d8e7f5b5ce
Children a37a1e349491
Don't leak simple watcher structs.
--- a/libpurple/protocols/simple/simple.c Fri Oct 25 05:11:46 2019 -0400
+++ b/libpurple/protocols/simple/simple.c Fri Oct 25 05:18:58 2019 -0400
@@ -2131,6 +2131,7 @@
g_hash_table_destroy(sip->buddies);
g_free(sip->regcallid);
g_slist_free_full(sip->transactions, (GDestroyNotify)transactions_destroy);
+ g_slist_free_full(sip->watcher, (GDestroyNotify)watcher_destroy);
g_free(sip->publish_etag);
if (sip->txbuf)
g_object_unref(G_OBJECT(sip->txbuf));