Merge pull request #4898 from ndogxj/patch-1
authorjmarshallnz <jcmarsha@gmail.com>
Thu, 12 Jun 2014 19:56:04 +0000 (07:56 +1200)
committerJonathan Marshall <jmarshall@xbmc.org>
Sun, 15 Jun 2014 04:25:15 +0000 (16:25 +1200)
[AML] Memory leak while Dispose

xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp

index 16a8341..baa24b8 100644 (file)
@@ -184,7 +184,7 @@ bool CDVDVideoCodecAmlogic::Open(CDVDStreamInfo &hints, CDVDCodecOptions &option
 void CDVDVideoCodecAmlogic::Dispose(void)
 {
   if (m_Codec)
-    m_Codec->CloseDecoder(), m_Codec = NULL;
+    m_Codec->CloseDecoder(), delete m_Codec, m_Codec = NULL;
   if (m_videobuffer.iFlags)
     m_videobuffer.iFlags = 0;
   if (m_mpeg2_sequence)