10l, wrong order in freeing

Originally committed as revision 6526 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Oded Shimon 2006-10-02 11:47:10 +00:00
parent 35af7a9b27
commit 419550990c

View File

@ -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);
}