Mercurial > pidgin
diff src/buddy.c @ 2125:af59d854de29
[gaim-migrate @ 2135]
bmiller's patch to unload plugins on exit signals
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Mon, 06 Aug 2001 18:12:36 +0000 |
| parents | 109669b3887e |
| children | acc11216ec5d |
line wrap: on
line diff
--- a/src/buddy.c Mon Aug 06 17:54:50 2001 +0000 +++ b/src/buddy.c Mon Aug 06 18:12:36 2001 +0000 @@ -1369,12 +1369,6 @@ void do_quit() { -#ifdef GAIM_PLUGINS - GList *c; - struct gaim_plugin *p; - void (*gaim_plugin_remove)(); -#endif - #ifdef USE_APPLET applet = NULL; #endif @@ -1384,16 +1378,7 @@ plugin_event(event_quit, 0, 0, 0, 0); /* then we remove everyone in a mass suicide */ - c = plugins; - while (c) { - p = (struct gaim_plugin *)c->data; - if (g_module_symbol(p->handle, "gaim_plugin_remove", (gpointer *)&gaim_plugin_remove)) - (*gaim_plugin_remove)(); - /* we don't need to worry about removing callbacks since - * there won't be any more chance to call them back :) */ - g_free(p); - c = c->next; - } + remove_all_plugins(); #endif system_log(log_quit, NULL, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); #ifdef USE_PERL
