Browse Source

svq1: use av_frame_free to free refcounted frame

Fixes a memleak due to avcodec_free_frame not freeing the frame data.
tags/n2.0
Janne Grunau 12 years ago
parent
commit
e3232f3431
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/svq1dec.c

+ 1
- 1
libavcodec/svq1dec.c View File

@@ -793,7 +793,7 @@ static av_cold int svq1_decode_end(AVCodecContext *avctx)
{
SVQ1Context *s = avctx->priv_data;

avcodec_free_frame(&s->prev);
av_frame_free(&s->prev);

return 0;
}


Loading…
Cancel
Save