Commit 323dcac7 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI
Browse files

Fix null checks in msiounit

parent a9b195ad
...@@ -258,11 +258,12 @@ static void au_uninit(MSSndCard *card){ ...@@ -258,11 +258,12 @@ static void au_uninit(MSSndCard *card){
stop_audio_unit(d); stop_audio_unit(d);
ms_mutex_destroy(&d->mutex); ms_mutex_destroy(&d->mutex);
ms_free(d); ms_free(d);
card->data = NULL;
} }
static void au_usage_hint(MSSndCard *card, bool_t used){ static void au_usage_hint(MSSndCard *card, bool_t used){
au_card_t *d=(au_card_t*)card->data; au_card_t *d=(au_card_t*)card->data;
if (!used){ if (!used && d){
cancel_audio_unit_timer(d); cancel_audio_unit_timer(d);
stop_audio_unit(d); stop_audio_unit(d);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment