Skip to content

Commit

Permalink
fixes done by Piru on acinerella wrapper: ac_free_video_decoder memor…
Browse files Browse the repository at this point in the history
…y leak fix, use av_frame_free to free AVFrame
  • Loading branch information
a1200 committed Mar 20, 2020
1 parent 63f1e13 commit 55df37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odyssey-r155188-1.23/BAL/Media/WebCore/MorphOS/acinerella.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,10 +1031,10 @@ void ac_free_video_decoder(lp_ac_video_decoder pDecoder)
if(pDecoder)
{
if(pDecoder->pFrame)
av_free(pDecoder->pFrame);
av_frame_free(&(pDecoder->pFrame));

if(pDecoder->pFrameRGB)
av_free(pDecoder->pFrameRGB);
av_frame_free(&(pDecoder->pFrameRGB));

ObtainSemaphore(&semAcinerella);

Expand Down

0 comments on commit 55df37b

Please sign in to comment.