提交 a0fea3e0 编写于 作者: Z Zhang Rui

ijksdl/audioqueue: fix a leak

上级 d142d540
......@@ -40,7 +40,7 @@ int aout_open_audio(SDL_Aout *aout, SDL_AudioSpec *desired, SDL_AudioSpec *obtai
SDLTRACE("aout_open_audio()\n");
SDL_Aout_Opaque *opaque = aout->opaque;
opaque->aoutController = [[[IJKSDLAudioQueueController alloc] initWithAudioSpec:desired] retain];
opaque->aoutController = [[IJKSDLAudioQueueController alloc] initWithAudioSpec:desired];
if (!opaque->aoutController) {
ALOGE("aout_open_audio_n: failed to new AudioTrcak()\n");
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册