free AVFrames

Originally committed to SVN as r242.
This commit is contained in:
David Lamparter 2006-03-25 23:39:40 +00:00
parent f0cf313be0
commit d58f1a28dc
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,10 @@ wxBitmap LAVCVideoProvider::AVFrameToWX(AVFrame *source) {
// Convert to wxBitmap
wxBitmap bmp((const char*) frameRGB->data[0],w,h,32);
av_free(frameRGB);
if (resized != source)
av_free(resized);
return bmp;
}