mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
free AVFrames
Originally committed to SVN as r242.
This commit is contained in:
parent
f0cf313be0
commit
d58f1a28dc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user