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:
		| @@ -305,6 +305,7 @@ void UpdateProcesses() | |||||||
| 				{ | 				{ | ||||||
| 					if (_wcsicmp(name, L"_Total") == 0) | 					if (_wcsicmp(name, L"_Total") == 0) | ||||||
| 					{ | 					{ | ||||||
|  | 						delete pObjInst; | ||||||
| 						continue; | 						continue; | ||||||
| 					} | 					} | ||||||
|  |  | ||||||
| @@ -340,6 +341,7 @@ void UpdateProcesses() | |||||||
| 						delete pPerfCntr; | 						delete pPerfCntr; | ||||||
| 					} | 					} | ||||||
| 				} | 				} | ||||||
|  |  | ||||||
| 				delete pObjInst; | 				delete pObjInst; | ||||||
| 			} | 			} | ||||||
| 			delete pPerfObj; | 			delete pPerfObj; | ||||||
|   | |||||||
| @@ -136,6 +136,12 @@ PLUGIN_EXPORT LPCWSTR GetString(void* data) | |||||||
| 	return buffer; | 	return buffer; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | PLUGIN_EXPORT void Finalize(void* data) | ||||||
|  | { | ||||||
|  | 	MeasureData* measure = (MeasureData*)data; | ||||||
|  | 	delete measure; | ||||||
|  | } | ||||||
|  |  | ||||||
| bool areStringsEqual(LPCWSTR i_String1, LPCWSTR i_Strting2) | bool areStringsEqual(LPCWSTR i_String1, LPCWSTR i_Strting2) | ||||||
| { | { | ||||||
| 	return _wcsicmp(i_String1, i_Strting2) == 0; | 	return _wcsicmp(i_String1, i_Strting2) == 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Birunthan Mohanathas
					Birunthan Mohanathas