mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
NowPlaying: Fixed memory leak in TagLib.
This commit is contained in:
parent
808dca7afe
commit
798ea5d010
@ -27,6 +27,7 @@
|
||||
#include "PlayerWinamp.h"
|
||||
#include "PlayerWLM.h"
|
||||
#include "PlayerWMP.h"
|
||||
#include "id3v1tag.h"
|
||||
|
||||
static std::vector<ParentMeasure*> g_ParentMeasures;
|
||||
std::wstring g_SettingsFile;
|
||||
@ -42,6 +43,10 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
// Disable DLL_THREAD_ATTACH and DLL_THREAD_DETACH notification calls
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
TagLib::ID3v1::Tag::setStringHandler(NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user