Mercurial > pidgin.yaz
diff src/plugin.c @ 5242:fd81a00480ac
[gaim-migrate @ 5613]
Plugins are now destroyed when gaim quits. Less memory leaks will be shown
as a result of this.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sun, 27 Apr 2003 20:39:36 +0000 |
| parents | 0241d6b6702d |
| children | f6e0c689a88b |
line wrap: on
line diff
--- a/src/plugin.c Sun Apr 27 17:33:10 2003 +0000 +++ b/src/plugin.c Sun Apr 27 20:39:36 2003 +0000 @@ -493,6 +493,18 @@ } void +gaim_plugins_destroy_all(void) +{ +#ifdef GAIM_PLUGINS + + gaim_plugins_unload_all(); + + while (plugins != NULL) + gaim_plugin_destroy(plugins->data); + +#endif /* GAIM_PLUGINS */ +} +void gaim_plugins_probe(const char *ext) { #ifdef GAIM_PLUGINS
