Module: wine Branch: stable Commit: 1252e27c55778486c70ede7c502d3387d1c89107 URL: https://gitlab.winehq.org/wine/wine/-/commit/1252e27c55778486c70ede7c502d338...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Tue Apr 25 20:29:25 2023 +0300
mshtml: Fix nsIFile dir leak in init_xpcom.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com (cherry picked from commit a10acc0ac398d5614ff731756c963c1416ed3255)
---
dlls/mshtml/nsembed.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index b7518f55ef9..9873e21ca38 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -560,6 +560,7 @@ static BOOL init_xpcom(const PRUnichar *gre_path) }
nsres = NS_InitXPCOM2(&pServMgr, gre_dir, (nsIDirectoryServiceProvider*)&nsDirectoryServiceProvider2); + nsIFile_Release(gre_dir); if(NS_FAILED(nsres)) { ERR("NS_InitXPCOM2 failed: %08lx\n", nsres); FreeLibrary(xul_handle);