comparison 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
comparison
equal deleted inserted replaced
5241:a3bb756635be 5242:fd81a00480ac
491 491
492 #endif /* GAIM_PLUGINS */ 492 #endif /* GAIM_PLUGINS */
493 } 493 }
494 494
495 void 495 void
496 gaim_plugins_destroy_all(void)
497 {
498 #ifdef GAIM_PLUGINS
499
500 gaim_plugins_unload_all();
501
502 while (plugins != NULL)
503 gaim_plugin_destroy(plugins->data);
504
505 #endif /* GAIM_PLUGINS */
506 }
507 void
496 gaim_plugins_probe(const char *ext) 508 gaim_plugins_probe(const char *ext)
497 { 509 {
498 #ifdef GAIM_PLUGINS 510 #ifdef GAIM_PLUGINS
499 GDir *dir; 511 GDir *dir;
500 const gchar *file; 512 const gchar *file;