Commit 26e80759 authored by emerit's avatar emerit
Browse files

fixing sanitizer

parent bbafd943
Loading
Loading
Loading
Loading
Loading
+0 −20
Original line number Original line Diff line number Diff line
@@ -205,26 +205,6 @@ void TDREND_MIX_Dealloc_fx(
        free( hBinRendererTd->HrFiltSet_p->ModelParams.AlphaR_dyn_fx );
        free( hBinRendererTd->HrFiltSet_p->ModelParams.AlphaR_dyn_fx );


        free( hBinRendererTd->HrFiltSet_p->ModelParams.elevBsShape_dyn_fx );
        free( hBinRendererTd->HrFiltSet_p->ModelParams.elevBsShape_dyn_fx );

        for ( i = 0; i < hBinRendererTd->HrFiltSet_p->ModelParams.num_unique_azim_splines; i++ )
        {
            free( hBinRendererTd->HrFiltSet_p->ModelParams.azimBsShape_dyn_fx[i] );
        }
        free( hBinRendererTd->HrFiltSet_p->ModelParams.azimBsShape_dyn_fx );

        free( (void *) hBinRendererTd->HrFiltSet_p->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 < hBinRendererTd->HrFiltSet_p->ModelParams.elevDim3; i++ )
        {
            free( hBinRendererTd->HrFiltSet_p->ModelParams.azimKSeq_fx[i] );
        }
        free( hBinRendererTd->HrFiltSet_p->ModelParams.azimKSeq_fx );

        free( hBinRendererTd->HrFiltSet_p->ModelParams.EL_dyn_fx );
        free( hBinRendererTd->HrFiltSet_p->ModelParams.ER_dyn_fx );

        free( hBinRendererTd->HrFiltSet_p->ModelEval.hrfModL_fx );
        free( hBinRendererTd->HrFiltSet_p->ModelEval.hrfModR_fx );

#endif
#endif


        IF( EQ_16( hBinRendererTd->HrFiltSet_p->ModelParams.modelROM, 1 ) )
        IF( EQ_16( hBinRendererTd->HrFiltSet_p->ModelParams.modelROM, 1 ) )
+0 −43
Original line number Original line Diff line number Diff line
@@ -1562,49 +1562,6 @@ void destroy_td_hrtf(
        free( ( *hHrtf )->ModelEval.hrfModL_fx );
        free( ( *hHrtf )->ModelEval.hrfModL_fx );
        free( ( *hHrtf )->ModelEval.hrfModR_fx );
        free( ( *hHrtf )->ModelEval.hrfModR_fx );
    }
    }
#ifdef USE_TDREND_16BIT_ROM
    else
    {
#ifdef USE_TDREND_16BIT_ROM
        if ( ( *hHrtf )->ModelParams.UseItdModel )
        {
            free( ( *hHrtf )->ModelParamsITD.elevKSeq_dyn_fx );
            free( ( *hHrtf )->ModelParamsITD.azimKSeq_dyn_fx );
            free( ( *hHrtf )->ModelParamsITD.W_dyn_fx );
            free( ( *hHrtf )->ModelParamsITD.azimBsShape_dyn_fx );
            free( ( *hHrtf )->ModelParamsITD.elevBsShape_dyn_fx );
        }
        free( ( *hHrtf )->ModelParams.elevKSeq_dyn_fx );
#ifndef FIX_989_TD_REND_ROM
        free( ( *hHrtf )->ModelParams.azimDim2_dyn );
#endif
        free( ( *hHrtf )->ModelParams.AlphaL_dyn_fx );
        free( ( *hHrtf )->ModelParams.AlphaR_dyn_fx );

        free( ( *hHrtf )->ModelParams.elevBsShape_dyn_fx );

        for ( i = 0; i < ( *hHrtf )->ModelParams.num_unique_azim_splines; i++ )
        {
            free( ( *hHrtf )->ModelParams.azimBsShape_dyn_fx[i] );
        }
        free( ( *hHrtf )->ModelParams.azimBsShape_dyn_fx );

        free( (void *) ( *hHrtf )->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 < ( *hHrtf )->ModelParams.elevDim3; i++ )
        {
            free( ( *hHrtf )->ModelParams.azimKSeq_fx[i] );
        }
        free( ( *hHrtf )->ModelParams.azimKSeq_fx );

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

        free( ( *hHrtf )->ModelEval.hrfModL_fx );
        free( ( *hHrtf )->ModelEval.hrfModR_fx );

#endif
    }
#endif


    ivas_HRTF_binary_close_fx( hHrtf );
    ivas_HRTF_binary_close_fx( hHrtf );