提交 6c13e901 authored 作者: Michael Jerris's avatar Michael Jerris

fix destroy leak when using uart.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@203 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 68365e34
......@@ -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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论