comparison libpurple/plugin.c @ 26611:8a0797f40695

Apply patch from darkrain42 to fix the crash-on-exit. Hopefully, the order of shutdown is no longer broken now. Fixes #8774.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 10 Apr 2009 05:57:23 +0000
parents dc05a7128d88
children 19cbe3af6167 01f1929d0936
comparison
equal deleted inserted replaced
26610:bd61f91e669a 26611:8a0797f40695
1232 1232
1233 #endif /* PURPLE_PLUGINS */ 1233 #endif /* PURPLE_PLUGINS */
1234 } 1234 }
1235 1235
1236 void 1236 void
1237 purple_plugins_unload(PurplePluginType type)
1238 {
1239 #ifdef PURPLE_PLUGINS
1240 GList *l;
1241
1242 for (l = plugins; l; l = l->next) {
1243 PurplePlugin *plugin = l->data;
1244 if (plugin->info->type == type && purple_plugin_is_loaded(plugin))
1245 purple_plugin_unload(plugin);
1246 }
1247
1248 #endif /* PURPLE_PLUGINS */
1249 }
1250
1251 void
1237 purple_plugins_destroy_all(void) 1252 purple_plugins_destroy_all(void)
1238 { 1253 {
1239 #ifdef PURPLE_PLUGINS 1254 #ifdef PURPLE_PLUGINS
1240 1255
1241 while (plugins != NULL) 1256 while (plugins != NULL)