From b6c96cf763b2994b9b71d8a53988749d7dea1914 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sun, 7 Jun 2020 17:23:31 -0500 Subject: [PATCH] qasf: Free type libraries on process detach (Valgrind). Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/qasf/qasf_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/qasf/qasf_main.c b/dlls/qasf/qasf_main.c index 2e65b693fa0..ac671d3919c 100644 --- a/dlls/qasf/qasf_main.c +++ b/dlls/qasf/qasf_main.c @@ -108,6 +108,10 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) DisableThreadLibraryCalls(instance); qasf_instance = instance; } + else if (reason == DLL_PROCESS_DETACH && !reserved) + { + strmbase_release_typelibs(); + } return TRUE; }