mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
avcodec/mediacodec_wrapper: fix {input,output}_buffers global reference leak
Fixes ticket #8607. Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
This commit is contained in:
parent
51db0a472a
commit
5216edbc54
@ -1303,6 +1303,12 @@ int ff_AMediaCodec_delete(FFAMediaCodec* codec)
|
||||
ret = AVERROR_EXTERNAL;
|
||||
}
|
||||
|
||||
(*env)->DeleteGlobalRef(env, codec->input_buffers);
|
||||
codec->input_buffers = NULL;
|
||||
|
||||
(*env)->DeleteGlobalRef(env, codec->output_buffers);
|
||||
codec->output_buffers = NULL;
|
||||
|
||||
(*env)->DeleteGlobalRef(env, codec->object);
|
||||
codec->object = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user