cmMidiAlsa.c : cmMpFinalize() now checks for a NULL handle before call snd_seq_stop_queue().

This commit is contained in:
Kevin Larke 2014-08-11 11:43:52 -07:00
parent 921891bbf1
commit 7d0888f97d

View File

@ -561,11 +561,12 @@ cmMpRC_t cmMpFinalize()
}
// stop the queue
if((arc = snd_seq_stop_queue(p->h,p->alsa_queue, NULL)) < 0 )
{
rc = _cmMpErrMsg(&p->err,kSysErrMpRC,arc,"ALSA queue stop failed.");
goto errLabel;
}
if( p->h != NULL )
if((arc = snd_seq_stop_queue(p->h,p->alsa_queue, NULL)) < 0 )
{
rc = _cmMpErrMsg(&p->err,kSysErrMpRC,arc,"ALSA queue stop failed.");
goto errLabel;
}
// release the alsa queue
if( p->alsa_queue != -1 )