[vlc-commits] audiotrack: fix audioTimestamp leak

Thomas Guillem git at videolan.org
Fri Feb 20 17:30:47 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 20 16:52:00 2015 +0100| [b74397521d4aa02c6036f9474bd00a879019ae91] | committer: Jean-Baptiste Kempf

audiotrack: fix audioTimestamp leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b74397521d4aa02c6036f9474bd00a879019ae91
---

 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



More information about the vlc-commits mailing list