Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c1f2cf1f
Commit
c1f2cf1f
authored
May 10, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
May 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- make sure to free the string table when closing the database
- don't free szPersist in MsiOpenDatabase if it's not a string
parent
809cf354
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
database.c
dlls/msi/database.c
+3
-1
No files found.
dlls/msi/database.c
View file @
c1f2cf1f
...
@@ -65,6 +65,7 @@ VOID MSI_CloseDatabase( MSIOBJECTHDR *arg )
...
@@ -65,6 +65,7 @@ VOID MSI_CloseDatabase( MSIOBJECTHDR *arg )
DWORD
r
;
DWORD
r
;
free_cached_tables
(
db
);
free_cached_tables
(
db
);
msi_destroy_stringtable
(
db
->
strings
);
r
=
IStorage_Release
(
db
->
storage
);
r
=
IStorage_Release
(
db
->
storage
);
if
(
r
)
if
(
r
)
ERR
(
"database reference count was not zero (%ld)
\n
"
,
r
);
ERR
(
"database reference count was not zero (%ld)
\n
"
,
r
);
...
@@ -213,7 +214,8 @@ UINT WINAPI MsiOpenDatabaseA(LPCSTR szDBPath, LPCSTR szPersist, MSIHANDLE *phDB)
...
@@ -213,7 +214,8 @@ UINT WINAPI MsiOpenDatabaseA(LPCSTR szDBPath, LPCSTR szPersist, MSIHANDLE *phDB)
r
=
MsiOpenDatabaseW
(
szwDBPath
,
szwPersist
,
phDB
);
r
=
MsiOpenDatabaseW
(
szwDBPath
,
szwPersist
,
phDB
);
end:
end:
HeapFree
(
GetProcessHeap
(),
0
,
szwPersist
);
if
(
HIWORD
(
szPersist
)
)
HeapFree
(
GetProcessHeap
(),
0
,
szwPersist
);
HeapFree
(
GetProcessHeap
(),
0
,
szwDBPath
);
HeapFree
(
GetProcessHeap
(),
0
,
szwDBPath
);
return
r
;
return
r
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment