Commit 775c924d authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] double free for hHrtfParamBin (merge artifact?)

parent 0842e390
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3512,9 +3512,11 @@ static void freeDecoderDummy(
        free( pDecDummy->hCombinedOrientationData );
    }
#ifdef LIB_REND_FIX_HRTFPARAMBIN_MEMLEAK
    /* Parametric binaural renderer HRTF structure */
    if ( pDecDummy->hHrtfParambin != NULL )
    {
        free( pDecDummy->hHrtfParambin );
        pDecDummy->hHrtfParambin = NULL;
    }
#endif

@@ -3555,9 +3557,6 @@ static void freeDecoderDummy(
        pDecDummy->hoa_dec_mtx = NULL;
    }

    /* Parametric binaural renderer HRTF structure */
    free( pDecDummy->hHrtfParambin );

#ifdef SPLIT_REND_WITH_HEAD_ROT
    if ( pDecDummy->splitBinRend.hMultiBinCldfbData != NULL )
    {