Author: tfaber
Date: Thu Jun 25 12:57:03 2015
New Revision: 68261
URL:
http://svn.reactos.org/svn/reactos?rev=68261&view=rev
Log:
[SHELL32]
- Fix reference leak in SHLoadInProc
Modified:
trunk/reactos/dll/win32/shell32/wine/shell32_main.c
Modified: trunk/reactos/dll/win32/shell32/wine/shell32_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/wine/she…
==============================================================================
--- trunk/reactos/dll/win32/shell32/wine/shell32_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/wine/shell32_main.c [iso-8859-1] Thu Jun 25 12:57:03
2015
@@ -1033,8 +1033,12 @@
TRACE("%s\n", debugstr_guid(rclsid));
CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown,&ptr);
- if (ptr)
+ if(ptr)
+ {
+ IUnknown * pUnk = ptr;
+ IUnknown_Release(pUnk);
return S_OK;
+ }
return DISP_E_MEMBERNOTFOUND;
}