From 0e1fd34c89d8f09f68c2c243ceccd0dab4f7c6c0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 5 Jan 2018 20:41:55 -0800 Subject: Fix a temp buffer leak in alffplay --- examples/alffplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp index 623e59b1..42987b86 100644 --- a/examples/alffplay.cpp +++ b/examples/alffplay.cpp @@ -852,11 +852,11 @@ int AudioState::handler() lock.lock(); } -finish: alSourceRewind(mSource); alSourcei(mSource, AL_BUFFER, 0); - av_freep(&mSamples); +finish: + av_freep(&samples); return 0; } -- cgit v1.2.3