diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
index 85a3a0dbb9e..0464e0597b0 100644
--- a/dlls/mshtml/nsembed.c
+++ b/dlls/mshtml/nsembed.c
@@ -879,8 +879,8 @@ void close_gecko(void)
if(nsmem)
nsIMemory_Release(nsmem);
- if(hXPCOM)
- FreeLibrary(hXPCOM);
+ /* Gecko doesn't really support being unloaded */
+ /* if (hXPCOM) FreeLibrary(hXPCOM); */
}
/**********************************************************