Commit 4272cc79 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Added missed pointer freeing in renderer

parent bcb13845
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -214,6 +214,9 @@ void ivas_dirac_ana_close_fx(
            ( *hDirAC )->direction_vector_e[i][j] = NULL;
        }

        free( ( *hDirAC )->direction_vector_e[i] );
        ( *hDirAC )->direction_vector_e[i] = NULL;

        FOR( j = 0; j < DIRAC_NO_COL_AVG_DIFF; j++ )
        {
            free( ( *hDirAC )->buffer_intensity_real_fx[i][j] );
@@ -348,7 +351,7 @@ static void ivas_dirac_param_est_ana_fx(
            move16();
            FOR( i = 0; i < numAnalysisChannels; i++ )
            {
                cldfbAnalysis_ts_fx_fixed_q( &( data_fx[i][imult1616( l_ts, ts )] ), Foa_RealBuffer_fx[i], Foa_ImagBuffer_fx[i], l_ts, hDirAC->cldfbAnaEnc[i], &inp_q );
                cldfbAnalysis_ts_fx_fixed_q( &( data_fx[i][( l_ts * ts )] ), Foa_RealBuffer_fx[i], Foa_ImagBuffer_fx[i], l_ts, hDirAC->cldfbAnaEnc[i], &inp_q );
                cr_q = s_min( cr_q, getScaleFactor32( Foa_RealBuffer_fx[i], CLDFB_NO_CHANNELS_MAX ) );
                ci_q = s_min( ci_q, getScaleFactor32( Foa_ImagBuffer_fx[i], CLDFB_NO_CHANNELS_MAX ) );
            }
+3 −0
Original line number Diff line number Diff line
@@ -276,6 +276,9 @@ void ivas_omasa_ana_close(

        free( ( *hOMasa )->direction_vector_m_fx[i] );
        ( *hOMasa )->direction_vector_m_fx[i] = NULL;

        free( ( *hOMasa )->direction_vector_e[i] );
        ( *hOMasa )->direction_vector_e[i] = NULL;
    }

    free( ( *hOMasa )->hMasaOut );