Skip to content

Commit

Permalink
fix mem leak if ffmpeg calls get_format more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Nov 16, 2011
1 parent 57ba0cb commit b0bcef1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b0bcef1

Please sign in to comment.