10l, wrong order in freeing
authorOded Shimon <ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 11:47:10 +0000 (11:47 +0000)
committerOded Shimon <ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 11:47:10 +0000 (11:47 +0000)
Originally committed as revision 6526 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vorbis_enc.c

index 3e5d83a..d9b1338 100644 (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);
         }