[vlc-devel] [PATCH 1/2] audiotrack: fix audioTimestamp leak
Thomas Guillem
thomas at gllm.fr
Fri Feb 20 16:52:00 CET 2015
---
modules/audio_output/audiotrack.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 9b2abeb..10a65fa 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -607,6 +607,12 @@ JNIThread_Stop( JNIEnv *env, bool *p_error, audio_output_t *p_aout )
JNI_AT_CALL_VOID( release );
(*env)->DeleteGlobalRef( env, p_sys->p_audiotrack );
p_sys->p_audiotrack = NULL;
+
+ if( p_sys->p_audioTimestamp )
+ {
+ (*env)->DeleteGlobalRef( env, p_sys->p_audioTimestamp );
+ p_sys->p_audioTimestamp = NULL;
+ }
}
static void
--
2.1.3
More information about the vlc-devel
mailing list