comparison audacious/pluginenum.c @ 309:b04ce1c98b6f trunk

[svn] Plugin cleanup functionality, via giacomo.
author nenolod
date Sat, 17 Dec 2005 12:36:29 -0800
parents 763afa52f416
children 1e2fc0f461a1
comparison
equal deleted inserted replaced
308:511354316db4 309:b04ce1c98b6f
376 if (ip_data.input_list) 376 if (ip_data.input_list)
377 g_list_free(ip_data.input_list); 377 g_list_free(ip_data.input_list);
378 378
379 for (node = get_output_list(); node; node = g_list_next(node)) { 379 for (node = get_output_list(); node; node = g_list_next(node)) {
380 op = OUTPUT_PLUGIN(node->data); 380 op = OUTPUT_PLUGIN(node->data);
381 if (op && op->cleanup) {
382 op->cleanup();
383 GDK_THREADS_LEAVE();
384 while (g_main_iteration(FALSE));
385 GDK_THREADS_ENTER();
386 }
381 g_module_close(op->handle); 387 g_module_close(op->handle);
382 } 388 }
383 389
384 if (op_data.output_list) 390 if (op_data.output_list)
385 g_list_free(op_data.output_list); 391 g_list_free(op_data.output_list);