diff options
author | Miguel Borges de Freitas <enen92@users.noreply.github.com> | 2022-12-15 21:52:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 21:52:47 +0000 |
commit | 057cdc725ed6c13becb1ef01c183c11544f7a196 (patch) | |
tree | 08936bc8855a0e6b9411e9684a77edbbf2bfb5d0 | |
parent | 5fba721213181cd36e8837858444375d285cfddb (diff) | |
parent | b6f0c52be62c3c306942e9a4780ecf0de1fc2bef (diff) |
Merge pull request #22125 from repojohnray/backport21671
[DVDDemuxClient] fix memory leak / backport of #21671
-rw-r--r-- | xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxClient.cpp b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxClient.cpp index 795b9c11e1..6299352b4c 100644 --- a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxClient.cpp +++ b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxClient.cpp @@ -333,7 +333,7 @@ DemuxPacket* CDVDDemuxClient::Read() if (!IsVideoReady()) { - m_packet.reset(); + CDVDDemuxUtils::FreeDemuxPacket(m_packet.release()); DemuxPacket *pPacket = CDVDDemuxUtils::AllocateDemuxPacket(0); pPacket->demuxerId = m_demuxerId; return pPacket; |