Sebastian Lackner : kernel32/tests: Add missing ReleaseActCtx() calls. ( Valgrind).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 23 12:57:40 CDT 2014


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

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Sun Jun 22 04:29:05 2014 +0200

kernel32/tests: Add missing ReleaseActCtx() calls. (Valgrind).

---

 dlls/kernel32/tests/thread.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index 1ea5fb3..d3ecd2a 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -1578,6 +1578,7 @@ static void test_thread_actctx(void)
     b = pGetCurrentActCtx(&handle);
     ok(b, "GetCurentActCtx failed: %u\n", GetLastError());
     ok(handle != 0, "no active context\n");
+    pReleaseActCtx(handle);
 
     param.handle = NULL;
     b = pGetCurrentActCtx(&param.handle);
@@ -1590,6 +1591,7 @@ static void test_thread_actctx(void)
     ret = WaitForSingleObject(thread, 1000);
     ok(ret == WAIT_OBJECT_0, "wait timeout\n");
     ok(param.thread_context == context, "got wrong thread context %p, %p\n", param.thread_context, context);
+    pReleaseActCtx(param.thread_context);
     CloseHandle(thread);
 
     /* similar test for CreateRemoteThread() */
@@ -1600,8 +1602,11 @@ static void test_thread_actctx(void)
     ret = WaitForSingleObject(thread, 1000);
     ok(ret == WAIT_OBJECT_0, "wait timeout\n");
     ok(param.thread_context == context, "got wrong thread context %p, %p\n", param.thread_context, context);
+    pReleaseActCtx(param.thread_context);
     CloseHandle(thread);
 
+    pReleaseActCtx(param.handle);
+
     b = pDeactivateActCtx(0, cookie);
     ok(b, "DeactivateActCtx failed: %u\n", GetLastError());
     pReleaseActCtx(context);




More information about the wine-cvs mailing list