Fix small mode leak (forgot to free the new logN array).
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Wed, 7 Apr 2010 22:30:28 +0000 (18:30 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Wed, 7 Apr 2010 22:30:28 +0000 (18:30 -0400)
libcelt/modes.c

index 3358b65..89d2f29 100644 (file)
@@ -437,11 +437,12 @@ void celt_mode_destroy(CELTMode *mode)
           }
       }
    }   
-   celt_free((int**)mode->bits);
-   celt_free((int*)mode->eBands);
-   celt_free((int*)mode->allocVectors);
+   celt_free((celt_int16**)mode->bits);
+   celt_free((celt_int16*)mode->eBands);
+   celt_free((celt_int16*)mode->allocVectors);
    
    celt_free((celt_word16*)mode->window);
+   celt_free((celt_int16*)mode->logN);
 
 #endif
    clt_mdct_clear(&mode->mdct);