Mercurial > pidgin
comparison libpurple/status.c @ 15593:f485c87e6546
sf patch #1655057, from Peter Tang
Fix a memory leak when signing off an account, I think. Peter Tang
found it and suggested one fix. I suggested another, then Sadrul
made it work. I like this change. We're now re-using GaimStatusType
objects instead of making lots of copies of them.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 09 Feb 2007 07:42:01 +0000 |
parents | 84b3ab83df35 |
children | 32c366eeeb99 |
comparison
equal
deleted
inserted
replaced
15592:0a5823d45398 | 15593:f485c87e6546 |
---|---|
1547 | 1547 |
1548 gboolean | 1548 gboolean |
1549 gaim_presence_is_status_primitive_active(const GaimPresence *presence, | 1549 gaim_presence_is_status_primitive_active(const GaimPresence *presence, |
1550 GaimStatusPrimitive primitive) | 1550 GaimStatusPrimitive primitive) |
1551 { | 1551 { |
1552 GList *l; | 1552 const GList *l; |
1553 | 1553 |
1554 g_return_val_if_fail(presence != NULL, FALSE); | 1554 g_return_val_if_fail(presence != NULL, FALSE); |
1555 g_return_val_if_fail(primitive != GAIM_STATUS_UNSET, FALSE); | 1555 g_return_val_if_fail(primitive != GAIM_STATUS_UNSET, FALSE); |
1556 | 1556 |
1557 for (l = gaim_presence_get_statuses(presence); | 1557 for (l = gaim_presence_get_statuses(presence); |