Commit 424994c9 authored by Tim Clem's avatar Tim Clem Committed by Alexandre Julliard

wmp: Don't release a NULL typelib.

parent 710eec8f
......@@ -89,7 +89,8 @@ static void release_typelib(void)
if (typeinfos[i])
ITypeInfo_Release(typeinfos[i]);
ITypeLib_Release(typelib);
if (typelib)
ITypeLib_Release(typelib);
}
static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv)
......@@ -154,6 +155,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
wmp_instance = hInstDLL;
break;
case DLL_PROCESS_DETACH:
if (lpv) break;
unregister_wmp_class();
unregister_player_msg_class();
release_typelib();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment