aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-05 20:41:55 -0800
committerChris Robinson <[email protected]>2018-01-05 20:41:55 -0800
commit0e1fd34c89d8f09f68c2c243ceccd0dab4f7c6c0 (patch)
tree138251ba71645891d14fc8abd5ddb1c0c079b82a
parent10f2531b6c410573ca4259b44207f34506a60ff2 (diff)
Fix a temp buffer leak in alffplay
-rw-r--r--examples/alffplay.cpp4
1 files 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;
}