Browse Source

vsrc_movie: do not free avoption variables in uninit()

The generic code frees them as well. Since av_free was used to free them
instead of av_freep, this would result in a double free.
tags/n2.0
Anton Khirnov 12 years ago
parent
commit
eeeb5c291d
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      libavfilter/vsrc_movie.c

+ 0
- 2
libavfilter/vsrc_movie.c View File

@@ -173,8 +173,6 @@ static av_cold void uninit(AVFilterContext *ctx)
{ {
MovieContext *movie = ctx->priv; MovieContext *movie = ctx->priv;


av_free(movie->file_name);
av_free(movie->format_name);
if (movie->codec_ctx) if (movie->codec_ctx)
avcodec_close(movie->codec_ctx); avcodec_close(movie->codec_ctx);
if (movie->format_ctx) if (movie->format_ctx)


Loading…
Cancel
Save