James Hawkins : msi: Fix a handle leak in the record tests.

Alexandre Julliard julliard at winehq.org
Fri Dec 11 11:04:46 CST 2009


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

Author: James Hawkins <truiken at gmail.com>
Date:   Thu Dec 10 17:01:06 2009 -0800

msi: Fix a handle leak in the record tests.

---

 dlls/msi/tests/record.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/tests/record.c b/dlls/msi/tests/record.c
index e8dd6f5..0da69c7 100644
--- a/dlls/msi/tests/record.c
+++ b/dlls/msi/tests/record.c
@@ -604,6 +604,7 @@ static void test_fieldzero(void)
     r = MsiRecordIsNull(rec, 0);
     ok(r == FALSE, "Expected FALSE, got %d\n", r);
 
+    MsiCloseHandle(rec);
     MsiCloseHandle(hdb);
     DeleteFileA(msifile);
 }




More information about the wine-cvs mailing list