Commit 6880621b authored by Ripinder Singh's avatar Ripinder Singh
Browse files

Fix for crash in decoder on free

parent 8682b5a1
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;
    }