提交 7b3fa56b authored 作者: kongdywang's avatar kongdywang

fix ios event bad access while destroy

上级 54abe294
......@@ -461,7 +461,7 @@ static const int CODE_ON_RECEIVE_FIRST_FRAME = 2003;
if (old && old != pixelBuffer) {
CFRelease(old);
}
if (_textureId >= 0) {
if (_textureId >= 0 && nil != _textureRegistry) {
[_textureRegistry textureFrameAvailable:_textureId];
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论