Mercurial > pidgin
diff src/protocols/msn/user.c @ 13962:b43aec5fa9eb
[gaim-migrate @ 16515]
Fix a tiny and rare memleak when unloading a plugin that was
designed for an older version of Gaim.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Tue, 18 Jul 2006 06:33:36 +0000 |
| parents | 967ef719cb62 |
| children |
line wrap: on
line diff
--- a/src/protocols/msn/user.c Mon Jul 17 23:57:12 2006 +0000 +++ b/src/protocols/msn/user.c Tue Jul 18 06:33:36 2006 +0000 @@ -55,6 +55,12 @@ { g_return_if_fail(user != NULL); + /* + * TODO: If any GaimBuddy->proto_data pointers point to this + * MsnUser then set them to NULL. Or possibly even better, + * don't set GaimBuddy->proto_data in the first place. + */ + if (user->clientcaps != NULL) g_hash_table_destroy(user->clientcaps);
