Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 13961:b0e37dcb3987 | 13962:b43aec5fa9eb |
|---|---|
| 53 void | 53 void |
| 54 msn_user_destroy(MsnUser *user) | 54 msn_user_destroy(MsnUser *user) |
| 55 { | 55 { |
| 56 g_return_if_fail(user != NULL); | 56 g_return_if_fail(user != NULL); |
| 57 | 57 |
| 58 /* | |
| 59 * TODO: If any GaimBuddy->proto_data pointers point to this | |
| 60 * MsnUser then set them to NULL. Or possibly even better, | |
| 61 * don't set GaimBuddy->proto_data in the first place. | |
| 62 */ | |
| 63 | |
| 58 if (user->clientcaps != NULL) | 64 if (user->clientcaps != NULL) |
| 59 g_hash_table_destroy(user->clientcaps); | 65 g_hash_table_destroy(user->clientcaps); |
| 60 | 66 |
| 61 if (user->group_ids != NULL) | 67 if (user->group_ids != NULL) |
| 62 g_list_free(user->group_ids); | 68 g_list_free(user->group_ids); |
