Skip to content

ISAR malloc() in every frame

The ISAR function isar_set_split_rend_setup() is called in every frame and a part of this function is malloc():

    if ( ( hSplitBinRend->hMultiBinCldfbData = (ISAR_DEC_SPLIT_REND_MULTI_BIN_CLDFB_DATA_HANDLE) malloc( sizeof( ISAR_DEC_SPLIT_REND_MULTI_BIN_CLDFB_DATA ) ) ) == NULL )
    {
        return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Cannot allocate memory for split rendering structure" );
    }

This approach of allocating/deallocating memory in every frame should be avoided.