Commit f1ab434c authored by ods15's avatar ods15

10l, wrong order in freeing


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6526 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75e75f5d
......@@ -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