Browse Source

libavcodec/tiffenc: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
bb5e148299
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/tiffenc.c

+ 1
- 1
libavcodec/tiffenc.c View File

@@ -420,7 +420,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
}
if (s->compr == TIFF_LZW)
av_free(s->lzws);
av_freep(&s->lzws);
}

s->num_entries = 0;


Loading…
Cancel
Save