Thomas Faber : shell32/tests: Do not leak shell folder references.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 29 08:12:10 CDT 2015


Module: wine
Branch: master
Commit: 9353a36d8fc8bb400bc2227914db0f2e60a19c24
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9353a36d8fc8bb400bc2227914db0f2e60a19c24

Author: Thomas Faber <thomas.faber at reactos.org>
Date:   Fri Jun 26 20:43:22 2015 +0200

shell32/tests: Do not leak shell folder references.

---

 dlls/shell32/tests/shfldr_special.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/shell32/tests/shfldr_special.c b/dlls/shell32/tests/shfldr_special.c
index cfb31be..8f97347 100644
--- a/dlls/shell32/tests/shfldr_special.c
+++ b/dlls/shell32/tests/shfldr_special.c
@@ -77,6 +77,7 @@ static void test_parse_for_entire_network(void)
     attr = ~0;
 
     hr = IShellFolder_ParseDisplayName(psfDesktop, NULL, NULL, entire_network_path, &eaten, &pidl, &attr);
+    IShellFolder_Release(psfDesktop);
     if (hr == HRESULT_FROM_WIN32(ERROR_BAD_NET_NAME) ||
         hr == HRESULT_FROM_WIN32(ERROR_NO_NET_OR_BAD_PATH) ||
         hr == HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER))
@@ -125,6 +126,7 @@ static void test_parse_for_control_panel(void)
        "Unexpected attributes : %08x\n", attr);
 
     ILFree(pidl);
+    IShellFolder_Release(psfDesktop);
 }
 
 static void test_printers_folder(void)




More information about the wine-cvs mailing list