changeset 21194:a4a55a096ac8

Use g_list_delete_link() instead of g_list_remove() in this new code, as we have a pointer to the link element already.
author Richard Laager <rlaager@wiktel.com>
date Sun, 07 Oct 2007 14:27:59 +0000
parents 67940cc52dc4
children 239cb5c2297b
files libpurple/plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugin.c	Sun Oct 07 14:25:17 2007 +0000
+++ b/libpurple/plugin.c	Sun Oct 07 14:27:59 2007 +0000
@@ -671,7 +671,7 @@
 			}
 			else
 			{
-				plugin->dependent_plugins = g_list_remove(plugin->dependent_plugins, dep_name);
+				plugin->dependent_plugins = g_list_delete_link(plugin->dependent_plugins, l);
 			}
 		}
 	}