Module: wine Branch: stable Commit: 072073db040a1591119b2682d0a5e144954e390d URL: https://gitlab.winehq.org/wine/wine/-/commit/072073db040a1591119b2682d0a5e14...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Tue Apr 25 20:29:25 2023 +0300
mshtml: Fix factory leak in init_nsio.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com (cherry picked from commit eba8c8d66e25e232953050e395ec1b71079bf9d6)
---
dlls/mshtml/nsio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 612d91ed386..f4778ca00f9 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -3994,9 +3994,9 @@ void init_nsio(nsIComponentManager *component_manager) }
nsres = nsIFactory_CreateInstance(old_factory, NULL, &IID_nsIIOService, (void**)&nsio); + nsIFactory_Release(old_factory); if(NS_FAILED(nsres)) { ERR("Couldn not create nsIOService instance %08lx\n", nsres); - nsIFactory_Release(old_factory); return; }