Mike McCormack : msi: Fix a couple of memory leaks in the test code.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 16 06:16:11 CDT 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Wed Aug 16 11:58:09 2006 +0900

msi: Fix a couple of memory leaks in the test code.

---

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

diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c
index 6c6ddfc..6da7666 100644
--- a/dlls/msi/tests/db.c
+++ b/dlls/msi/tests/db.c
@@ -1196,6 +1196,7 @@ static void test_markers(void)
     query = "CREATE TABLE `Table` ( `One` SHORT NOT NULL, `Two` CHAR(255) PRIMARY KEY `One`)";
     r = run_query(hdb, 0, query);
     ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
+    MsiCloseHandle(rec);
 
     /* try table name as marker */
     rec = MsiCreateRecord(1);
@@ -1351,6 +1352,7 @@ static void test_markers(void)
     query = "INSERT INTO `Table` ( `One`, `Two` ) VALUES ( ?, ? )";
     r = run_query(hdb, rec, query);
     ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
+    MsiCloseHandle(rec);
 
     MsiCloseHandle(hdb);
     DeleteFileA(msifile);




More information about the wine-cvs mailing list