Skip to content

Commit

Permalink
[Decode] Fix virtual engine memory leak issue
Browse files Browse the repository at this point in the history
Release pVEInterf to fix the mem leak issue.

Change-Id: Id8b3f6793a70e24a063b2c8c357c4ae9b3eb95dc
  • Loading branch information
zxye authored and Sherry-Lin committed Jun 20, 2019
1 parent 915fa0c commit bcb3349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions media_driver/linux/common/os/mos_os_specific.c
Original file line number Diff line number Diff line change
Expand Up @@ -1702,6 +1702,10 @@ void Mos_Specific_Destroy(
pOsInterface->pOsContext->pfnDestroy(pOsInterface->pOsContext, pOsInterface->modulizedMosEnabled, modularizedGpuCtxEnabled);
pOsInterface->pOsContext = nullptr;
}
if (pOsInterface->pVEInterf)
{
MOS_FreeMemAndSetNull(pOsInterface->pVEInterf);
}
}

//!
Expand Down

0 comments on commit bcb3349

Please sign in to comment.