Mercurial > pidgin
changeset 32386:978a070e8724
Fix an inconsequential memory leak. We weren't freeing this dudes
at shutdown. Now we R.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 12 Dec 2011 07:30:21 +0000 |
parents | 969fb5413ea5 |
children | d0dba386ca0a |
files | libpurple/cmds.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/cmds.c Sun Dec 11 09:42:52 2011 +0000 +++ b/libpurple/cmds.c Mon Dec 12 07:30:21 2011 +0000 @@ -385,5 +385,10 @@ void purple_cmds_uninit(void) { purple_signals_unregister_by_instance(purple_cmds_get_handle()); + + while (cmds) { + purple_cmd_free(cmds->data); + cmds = g_list_delete_link(cmds, cmds); + } }