pidgin: 4d5b1499: Fix an inconsequential memory leak. We ...
markdoliner at pidgin.im
markdoliner at pidgin.im
Mon Dec 12 02:35:46 EST 2011
----------------------------------------------------------------------
Revision: 4d5b14992dc5f14d190cd9b62d5aec5c5d5b07db
Parent: 90d68abb471af002d167b7fc468a88fe4a2aa191
Author: markdoliner at pidgin.im
Date: 12/12/11 02:30:21
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4d5b14992dc5f14d190cd9b62d5aec5c5d5b07db
Changelog:
Fix an inconsequential memory leak. We weren't freeing this dudes
at shutdown. Now we R.
Changes against parent 90d68abb471af002d167b7fc468a88fe4a2aa191
patched libpurple/cmds.c
-------------- next part --------------
============================================================
--- libpurple/cmds.c f2e052a4f379bb397a19af573c691abf8b8f952b
+++ libpurple/cmds.c 5ebbe96a265411706c45d55a361e394d24d662a9
@@ -385,5 +385,10 @@ void purple_cmds_uninit(void)
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);
+ }
}
More information about the Commits
mailing list