- AdvancedCPU.dll: Fixed memory leak

- CoreTemp.dll: Fixed memory leak since r1111
This commit is contained in:
Birunthan Mohanathas 2012-02-04 08:52:56 +00:00
parent 9a06301189
commit b1c8f97409
2 changed files with 8 additions and 0 deletions

View File

@ -305,6 +305,7 @@ void UpdateProcesses()
{
if (_wcsicmp(name, L"_Total") == 0)
{
delete pObjInst;
continue;
}
@ -340,6 +341,7 @@ void UpdateProcesses()
delete pPerfCntr;
}
}
delete pObjInst;
}
delete pPerfObj;

View File

@ -136,6 +136,12 @@ PLUGIN_EXPORT LPCWSTR GetString(void* data)
return buffer;
}
PLUGIN_EXPORT void Finalize(void* data)
{
MeasureData* measure = (MeasureData*)data;
delete measure;
}
bool areStringsEqual(LPCWSTR i_String1, LPCWSTR i_Strting2)
{
return _wcsicmp(i_String1, i_Strting2) == 0;