changeset 21965:6a48fc471505

Fix a double-free when unloading dependent plugins. Fixes #4488.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 30 Dec 2007 13:53:57 +0000
parents 780266b8f15d
children 1796af35d1aa
files libpurple/plugin.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugin.c	Sat Dec 29 23:25:14 2007 +0000
+++ b/libpurple/plugin.c	Sun Dec 30 13:53:57 2007 +0000
@@ -667,7 +667,10 @@
 			}
 			else
 			{
+#if 0
+				/* This isn't necessary. This has already been done when unloading dep_plugin. */
 				plugin->dependent_plugins = g_list_delete_link(plugin->dependent_plugins, l);
+#endif
 			}
 		}
 	}