commit | 950417b14983aa782dc98a146142c008bae9f9ae | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Fri Feb 04 14:48:56 2022 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Feb 04 14:48:56 2022 +0000 |
tree | a35dfbc9eabed3b8d48556aab71f4ccaccf32893 | |
parent | 4d80237c547140cfd0c96c0cc933b94d851a27aa [diff] | |
parent | 9501532bc725e1fa94c13123f92ed7f809d489c5 [diff] |
Merge "Fix memory leak in playback time accumulation"
diff --git a/media/libstagefright/include/media/stagefright/MediaCodec.h b/media/libstagefright/include/media/stagefright/MediaCodec.h index eb01f9d..29a87e9 100644 --- a/media/libstagefright/include/media/stagefright/MediaCodec.h +++ b/media/libstagefright/include/media/stagefright/MediaCodec.h
@@ -509,7 +509,7 @@ std::shared_ptr<BufferChannelBase> mBufferChannel; - PlaybackDurationAccumulator * mPlaybackDurationAccumulator; + std::unique_ptr<PlaybackDurationAccumulator> mPlaybackDurationAccumulator; bool mIsSurfaceToScreen; MediaCodec(