diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2016-04-24 14:41:58 +0200 |
---|---|---|
committer | Martijn Kaijser <martijn@xbmc.org> | 2016-04-24 14:41:58 +0200 |
commit | 3b70d8834387a0f61825b66c4c9d79bb66f6d6c0 (patch) | |
tree | 278c840959f19fa4d1035c5e03b51afbd0bb19de | |
parent | ddf33973e527de79b7ad9086f66d28c1b8948f7f (diff) | |
parent | e7d46407633cf3855937e3295307ee3e165e4978 (diff) |
Merge pull request #9661 from fritsch/ffmpegpicture
FFmpegImage: Fix memory leak
-rw-r--r-- | xbmc/guilib/FFmpegImage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/guilib/FFmpegImage.cpp b/xbmc/guilib/FFmpegImage.cpp index dcc357482c..53db4a2d58 100644 --- a/xbmc/guilib/FFmpegImage.cpp +++ b/xbmc/guilib/FFmpegImage.cpp @@ -459,7 +459,7 @@ bool CFFmpegImage::DecodeFrame(AVFrame* frame, unsigned int width, unsigned int if (minPitch < 0) { CLog::LogFunction(LOGERROR, __FUNCTION__, "negative pitch or height"); - av_free(pictureRGB); + av_frame_free(&pictureRGB); return false; } const unsigned char *src = pictureRGB->data[0]; |