commit | cbd676bb66e74913951ca2e43092071a314f3505 | [log] [tgz] |
---|---|---|
author | Vignesh Venkatasubramanian <vigneshv@google.com> | Thu Apr 28 12:30:29 2016 -0700 |
committer | Vignesh Venkatasubramanian <vigneshv@google.com> | Thu Apr 28 12:30:29 2016 -0700 |
tree | bf0054db906af6eb5e2848dc96398c003f60b3b1 | |
parent | 9a235e0bc94319c5f7184bd69cbe5468a74a025c [diff] |
mkvmuxer: Fix leak when a Cluster isn't finalized There's a leak in the following scenario: * AccurateClusterDuration is set to true. * Add a few frames. * An error is encountered while adding a frame and the application bails without calling Cluster::Finalize * All the frames we queues in QueueOrWriteFrames now leak. This patch fixes this scenario by delete'ing any left over frames in the Cluster's destructor. Change-Id: I104f6814db18a86fae9877decfe6cc75b8937fcb