fix destroy leak when using uart.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@203 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
e56c64a692
commit
b351047b14
|
@ -233,6 +233,10 @@ void dsp_bell202_destroy(dsp_bell202_handle_t **handle)
|
|||
(*handle)->buffer = NULL;
|
||||
}
|
||||
|
||||
if ((*handle)->attr.bytehandler) {
|
||||
dsp_uart_destroy((dsp_uart_handle_t**)&(*handle)->attr.bithandler_arg);
|
||||
}
|
||||
|
||||
free(*handle);
|
||||
*handle = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue