Unverified Commit 85f7fb46 authored by norvell's avatar norvell
Browse files

Add missing free

parent 66db8855
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -131,6 +131,9 @@ void ivas_HRTF_td_binary_close_fx(
            free( ( *hHrtfTD )->ModelParams.azimBsShape_dyn_fx[i] );
        }
        free( ( *hHrtfTD )->ModelParams.azimBsShape_dyn_fx );
#ifdef FIX_2235_TD_RENDERER_WORD16
        free( ( *hHrtfTD )->ModelParams.azimBsShape_Q_fx );
#endif

        free( (void *) ( *hHrtfTD )->ModelParams.azimBsShape_fx ); /* void* cast needed to please both gcc and Visual studio compilers. Deallocating const float** should be fine and gcc agrees, but Visual studio complains. */
        for ( i = 0; i < ( *hHrtfTD )->ModelParams.elevDim3; i++ )
@@ -138,6 +141,9 @@ void ivas_HRTF_td_binary_close_fx(
            free( ( *hHrtfTD )->ModelParams.azimKSeq_fx[i] );
        }
        free( ( *hHrtfTD )->ModelParams.azimKSeq_fx );
#ifdef FIX_2235_TD_RENDERER_WORD16
        free( ( *hHrtfTD )->ModelParams.azimKSeq_Q_fx );
#endif

        free( ( *hHrtfTD )->ModelParams.EL_dyn_fx );
        free( ( *hHrtfTD )->ModelParams.ER_dyn_fx );