[SHELL32]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 25 Jun 2015 14:04:02 +0000 (14:04 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 25 Jun 2015 14:04:02 +0000 (14:04 +0000)
- Fix shell folder reference leak in _OpenDirectory.
CORE-9867

svn path=/trunk/; revision=68263

reactos/dll/win32/shell32/wine/changenotify.c

index 15354a8..9d2a2ef 100644 (file)
@@ -634,6 +634,7 @@ BOOL _OpenDirectory(LPNOTIFYREGISTER item)
         return FALSE;
 
     hr = IShellFolder_GetDisplayNameOf(psfDesktop, item->pidl, SHGDN_FORPARSING, &strFile);
+    IShellFolder_Release(psfDesktop);
     if (!SUCCEEDED(hr))
         return FALSE;