Commit 41955099 authored by Oded Shimon's avatar Oded Shimon

10l, wrong order in freeing

Originally committed as revision 6526 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 35af7a9b
......@@ -1031,10 +1031,10 @@ static int vorbis_encode_close(AVCodecContext * avccontext)
if (venc->floors)
for (i = 0; i < venc->nfloors; i++) {
int j;
av_freep(&venc->floors[i].classes);
if (venc->floors[i].classes)
for (j = 0; j < venc->floors[i].nclasses; j++)
av_freep(&venc->floors[i].classes[j].books);
av_freep(&venc->floors[i].classes);
av_freep(&venc->floors[i].partition_to_class);
av_freep(&venc->floors[i].list);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment