NowPlaying: Fixed memory leak in TagLib.

This commit is contained in:
Birunthan Mohanathas 2012-02-02 12:49:36 +00:00
parent 808dca7afe
commit 798ea5d010

View File

@ -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;