Browse files

Merge pull request #624 from CrHasher/convertframefix

Improper disposal of converted frame results in a crash when seeking vid...
  • Loading branch information...
2 parents 030084c + 85e52c6 commit a89e057dd1d1c4b1621076c99895c50598b8ea00 @elupus elupus committed Jan 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp
View
2 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp
@@ -540,7 +540,7 @@ void CDVDVideoCodecFFmpeg::Reset()
if (m_pConvertFrame)
{
- delete[] m_pConvertFrame->data[0];
+ m_dllAvCodec.avpicture_free(m_pConvertFrame);
m_dllAvUtil.av_free(m_pConvertFrame);
m_pConvertFrame = NULL;
}

0 comments on commit a89e057

Please sign in to comment.