Mercurial > audlegacy
comparison audacious/pluginenum.c @ 650:980d651da2fc trunk
[svn] Actually use the cleanup hooks on general & visualization plugins.
| author | chainsaw |
|---|---|
| date | Sun, 19 Feb 2006 15:35:37 -0800 |
| parents | e4e897d20791 |
| children | a1806a3cf3d2 |
comparison
equal
deleted
inserted
replaced
| 649:e43b04a4e599 | 650:980d651da2fc |
|---|---|
| 415 while (g_main_iteration(FALSE)); | 415 while (g_main_iteration(FALSE)); |
| 416 GDK_THREADS_ENTER(); | 416 GDK_THREADS_ENTER(); |
| 417 | 417 |
| 418 for (node = get_general_list(); node; node = g_list_next(node)) { | 418 for (node = get_general_list(); node; node = g_list_next(node)) { |
| 419 gp = GENERAL_PLUGIN(node->data); | 419 gp = GENERAL_PLUGIN(node->data); |
| 420 if (gp && gp->cleanup) { | |
| 421 gp->cleanup(); | |
| 422 GDK_THREADS_LEAVE(); | |
| 423 while (g_main_iteration(FALSE)); | |
| 424 GDK_THREADS_ENTER(); | |
| 425 } | |
| 420 g_module_close(gp->handle); | 426 g_module_close(gp->handle); |
| 421 } | 427 } |
| 422 | 428 |
| 423 if (gp_data.general_list) | 429 if (gp_data.general_list) |
| 424 g_list_free(gp_data.general_list); | 430 g_list_free(gp_data.general_list); |
| 435 while (g_main_iteration(FALSE)); | 441 while (g_main_iteration(FALSE)); |
| 436 GDK_THREADS_ENTER(); | 442 GDK_THREADS_ENTER(); |
| 437 | 443 |
| 438 for (node = get_vis_list(); node; node = g_list_next(node)) { | 444 for (node = get_vis_list(); node; node = g_list_next(node)) { |
| 439 vp = VIS_PLUGIN(node->data); | 445 vp = VIS_PLUGIN(node->data); |
| 446 if (vp && vp->cleanup) { | |
| 447 vp->cleanup(); | |
| 448 GDK_THREADS_LEAVE(); | |
| 449 while (g_main_iteration(FALSE)); | |
| 450 GDK_THREADS_ENTER(); | |
| 451 } | |
| 440 g_module_close(vp->handle); | 452 g_module_close(vp->handle); |
| 441 } | 453 } |
| 442 | 454 |
| 443 if (vp_data.vis_list) | 455 if (vp_data.vis_list) |
| 444 g_list_free(vp_data.vis_list); | 456 g_list_free(vp_data.vis_list); |
