forked from mia/Aegisub
free AVFrames
Originally committed to SVN as r242.
This commit is contained in:
parent
f0cf313be0
commit
d58f1a28dc
1 changed files with 4 additions and 0 deletions
|
@ -276,6 +276,10 @@ wxBitmap LAVCVideoProvider::AVFrameToWX(AVFrame *source) {
|
||||||
|
|
||||||
// Convert to wxBitmap
|
// Convert to wxBitmap
|
||||||
wxBitmap bmp((const char*) frameRGB->data[0],w,h,32);
|
wxBitmap bmp((const char*) frameRGB->data[0],w,h,32);
|
||||||
|
|
||||||
|
av_free(frameRGB);
|
||||||
|
if (resized != source)
|
||||||
|
av_free(resized);
|
||||||
return bmp;
|
return bmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue