qasf: Free type libraries on process detach (Valgrind).

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-06-07 17:23:31 -05:00 committed by Alexandre Julliard
parent 0e6fc4d81c
commit b6c96cf763
1 changed files with 4 additions and 0 deletions

View File

@ -108,6 +108,10 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
DisableThreadLibraryCalls(instance); DisableThreadLibraryCalls(instance);
qasf_instance = instance; qasf_instance = instance;
} }
else if (reason == DLL_PROCESS_DETACH && !reserved)
{
strmbase_release_typelibs();
}
return TRUE; return TRUE;
} }