# HG changeset patch # User chainsaw # Date 1140392137 28800 # Node ID 980d651da2fcb5d6e74e897b25f6cfc05d8455f5 # Parent e43b04a4e5992032d0663764161ccd1c9978134a [svn] Actually use the cleanup hooks on general & visualization plugins. diff -r e43b04a4e599 -r 980d651da2fc audacious/pluginenum.c --- a/audacious/pluginenum.c Sun Feb 19 15:18:05 2006 -0800 +++ b/audacious/pluginenum.c Sun Feb 19 15:35:37 2006 -0800 @@ -417,6 +417,12 @@ for (node = get_general_list(); node; node = g_list_next(node)) { gp = GENERAL_PLUGIN(node->data); + if (gp && gp->cleanup) { + gp->cleanup(); + GDK_THREADS_LEAVE(); + while (g_main_iteration(FALSE)); + GDK_THREADS_ENTER(); + } g_module_close(gp->handle); } @@ -437,6 +443,12 @@ for (node = get_vis_list(); node; node = g_list_next(node)) { vp = VIS_PLUGIN(node->data); + if (vp && vp->cleanup) { + vp->cleanup(); + GDK_THREADS_LEAVE(); + while (g_main_iteration(FALSE)); + GDK_THREADS_ENTER(); + } g_module_close(vp->handle); }