shithub: opus

Download patch

ref: 31bec963bb078b4f47e48c9092b7e86a0fb28aea
parent: f400a3c573ae50c1f4b7b19815700bfe12f0add5
author: Jean-Marc Valin <[email protected]>
date: Wed Apr 7 14:30:28 EDT 2010

Fix small mode leak (forgot to free the new logN array).

--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -437,11 +437,12 @@
           }
       }
    }   
-   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);