Commit 3e464f22 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

Merge branch '1154_Crash_in_decoder_free' into 'main'

Fix for crash in decoder on free

See merge request !2282
parents d2023947 bb901e8f
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -346,11 +346,17 @@ void IVAS_DEC_Close(
        ( *phIvasDec )->hVoIP = NULL;
    }

#ifndef IVAS_RTPDUMP
    /* destroy Split binaural renderer (ISAR) handle */
    ivas_destroy_handle_isar( &( *phIvasDec )->st_ivas->hSplitBinRend );
#endif

    if ( ( *phIvasDec )->st_ivas )
    {
#ifdef IVAS_RTPDUMP
        /* destroy Split binaural renderer (ISAR) handle */
        ivas_destroy_handle_isar( &( *phIvasDec )->st_ivas->hSplitBinRend );
#endif
        ivas_destroy_dec( ( *phIvasDec )->st_ivas );
        ( *phIvasDec )->st_ivas = NULL;
    }