mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- AdvancedCPU.dll: Fixed memory leak
- CoreTemp.dll: Fixed memory leak since r1111
This commit is contained in:
parent
9a06301189
commit
b1c8f97409
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user