avfilter picture pool: double free hotfix

This fix introduces a small memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-06-21 04:24:03 +02:00
parent 6cbe81999b
commit 90c6963dae
1 changed files with 3 additions and 2 deletions

View File

@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link)
av_freep(&picref->audio);
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);
}