Skip to content

Commit

Permalink
add missing MDAPI cleanup call (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug authored Sep 27, 2018
1 parent 8e2266e commit af7119a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Src/intercept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ CLIntercept::~CLIntercept()
// the process is terminating, that's probably OK.
m_Dispatch = dummyDispatch;

#if defined(USE_MDAPI)
if( m_pMDHelper )
{
MetricsDiscovery::MDHelper::Delete( m_pMDHelper );
}
#endif

if( m_OpenCLLibraryHandle != NULL )
{
OS().UnloadLibrary( m_OpenCLLibraryHandle );
Expand Down

0 comments on commit af7119a

Please sign in to comment.