Browse Source

avfilter picture pool: double free hotfix

This fix introduces a small memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer 14 years ago
parent
commit
90c6963dae
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavfilter/avfilter.c

+ 3
- 2
libavfilter/avfilter.c View File

@@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link)


av_freep(&picref->audio); av_freep(&picref->audio);
av_freep(&picref->video); av_freep(&picref->video);
av_freep(&picref);
av_freep(&(*link)->pool->pic[i]);
} }
} }
av_freep(&(*link)->pool);
(*link)->pool->count = 0;
// av_freep(&(*link)->pool);
} }
av_freep(link); av_freep(link);
} }


Loading…
Cancel
Save