Commit fae1e266 authored by emerit's avatar emerit
Browse files

fix missing test

parent f3e8758a
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@

#define FIX_1053_REVERB_RECONFIGURATION                 /* Philips: issue 1053: fix for dynamic switching of acoustic environment */

#define FIX_1077_MEMORY_TEST_MISSING                    /* orange: issue 1077 : add missing memory test*/

/* #################### End BE switches ################################## */

+4 −0
Original line number Diff line number Diff line
@@ -1860,7 +1860,11 @@ ivas_error destroy_hrtf_statistics(
    IVAS_DEC_HRTF_STATISTICS_HANDLE *hHrtfStatistics /* i/o: HRTF statistics handle  */
)
{
#ifdef FIX_1077_MEMORY_TEST_MISSING
    if ( ( hHrtfStatistics != NULL ) && ( *hHrtfStatistics != NULL ) && ( ( *hHrtfStatistics )->fromROM == FALSE ) )
#else
    if ( hHrtfStatistics != NULL && ( *hHrtfStatistics )->fromROM == FALSE )
#endif
    {
        free( ( *hHrtfStatistics )->average_energy_l );
        free( ( *hHrtfStatistics )->average_energy_r );