Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Source/GmmLib/GlobalInfo/GmmInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ extern "C" GMM_STATUS GMM_STDCALL GmmCreateSingletonContext(const PLATFORM Platf
extern "C" void GMM_STDCALL GmmDestroySingletonContext(void)
{
__GMM_ASSERTPTR(pGmmGlobalContext, VOIDRETURN);
#ifndef _WIN32
GmmLib::Context::DecrementRefCount();
#endif
// Dont delete/destruct singletonContext. This is needed so that SingletonContext is not
// deleted even after UMDs are unloaded and process is still active.
// Free of SingletonContext shall be handled as part of process clean up
Expand Down