This is the fix for "JDK-8389515: Memory leak in dshowwrapper - decoded buffers delivered by CSink are never unmapped"
The fix adds a second field `m_pMappedGstBuffer` that tracks mapping ownership independently of the `m_pGstBuffer` delivery ownership that `CSink` steals, so the unmap always targets the buffer that was actually mapped, and it is done exactly once. The fix conforms to the buffer life cycle -- `CAllocator::GetBuffer()` - `CAllocator::ReleaseBuffer()`. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - fix memory leak in dshowwrapper Changes: https://git.openjdk.org/jfx/pull/2234/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2234&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8389515 Stats: 13 lines in 2 files changed: 11 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jfx/pull/2234.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2234/head:pull/2234 PR: https://git.openjdk.org/jfx/pull/2234
