Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/status.c Fri Feb 09 07:34:51 2007 +0000 +++ b/libpurple/status.c Fri Feb 09 07:42:01 2007 +0000 @@ -1549,7 +1549,7 @@ gaim_presence_is_status_primitive_active(const GaimPresence *presence, GaimStatusPrimitive primitive) { - GList *l; + const GList *l; g_return_val_if_fail(presence != NULL, FALSE); g_return_val_if_fail(primitive != GAIM_STATUS_UNSET, FALSE);
