void mbx_free_output_device_name_list(char **dev_names) { if ( dev_names != NULL ) { int i=0; while ( dev_names[i] != NULL ) { _mbx_xfree(dev_names[i++]); } _mbx_xfree(dev_names); } }
static void do_free_audio_output(_mbx_out out) { if ( out != NULL ) { if ( out->pa_props != NULL ) { pa_proplist_free(out->pa_props); out->pa_props = NULL; } if ( out->pa_ml != NULL ) { pa_threaded_mainloop_free(out->pa_ml); out->pa_ml = NULL; } if ( out->dev_name != NULL ) { _mbx_xfree((void *) out->dev_name); out->dev_name = NULL; } if ( out->name != NULL ) { _mbx_xfree((void *) out->name); out->name = NULL; } _mbx_xfree(out); } }