Permalink
Browse files

Merge pull request #535 from FernetMenta/mainline2

fix mem leak if ffmpeg calls get_format more than once
  • Loading branch information...
2 parents 57ba0cb + b0bcef1 commit 677d5aeb9307b67e3ad4f2ea42c34db9e0d371d9 @elupus elupus committed Nov 16, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h
View
1 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h
@@ -66,6 +66,7 @@ class CDVDVideoCodecFFmpeg : public CDVDVideoCodec
IHardwareDecoder * GetHardware() { return m_pHardware; };
void SetHardware(IHardwareDecoder* hardware)
{
+ SAFE_RELEASE(m_pHardware);
m_pHardware = hardware;
m_name += "-";
m_name += m_pHardware->Name();

0 comments on commit 677d5ae

Please sign in to comment.