Mercurial > pidgin
comparison libpurple/plugin.c @ 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 | fb8f9bf86315 |
comparison
equal
deleted
inserted
replaced
| 21193:67940cc52dc4 | 21194:a4a55a096ac8 |
|---|---|
| 669 | 669 |
| 670 return FALSE; | 670 return FALSE; |
| 671 } | 671 } |
| 672 else | 672 else |
| 673 { | 673 { |
| 674 plugin->dependent_plugins = g_list_remove(plugin->dependent_plugins, dep_name); | 674 plugin->dependent_plugins = g_list_delete_link(plugin->dependent_plugins, l); |
| 675 } | 675 } |
| 676 } | 676 } |
| 677 } | 677 } |
| 678 | 678 |
| 679 /* Remove this plugin from each dependency's dependent_plugins list. */ | 679 /* Remove this plugin from each dependency's dependent_plugins list. */ |
