changeset 3918:56c8e3ab7fe0 libavcodec

10l, wrong order in freeing
author ods15
date Mon, 02 Oct 2006 11:47:10 +0000
parents 62849ae93c2b
children b0b88fc01b7c
files vorbis_enc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 11:31:52 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 11:47:10 2006 +0000
@@ -1031,10 +1031,10 @@
     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);
         }