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
22a277cc
Commit
22a277cc
authored
May 28, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
May 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix some memory leaks.
parent
a4b76cee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
4 deletions
+21
-4
alter.c
dlls/msi/alter.c
+4
-1
drop.c
dlls/msi/drop.c
+4
-1
join.c
dlls/msi/join.c
+4
-1
storages.c
dlls/msi/storages.c
+3
-1
streams.c
dlls/msi/streams.c
+3
-0
update.c
dlls/msi/update.c
+3
-0
No files found.
dlls/msi/alter.c
View file @
22a277cc
...
...
@@ -257,8 +257,11 @@ UINT ALTER_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR name, column_inf
return
ERROR_FUNCTION_FAILED
;
r
=
TABLE_CreateView
(
db
,
name
,
&
av
->
table
);
if
(
r
!=
ERROR_SUCCESS
||
!
av
->
table
)
if
(
r
!=
ERROR_SUCCESS
)
{
msi_free
(
av
);
return
r
;
}
if
(
colinfo
)
colinfo
->
table
=
name
;
...
...
dlls/msi/drop.c
View file @
22a277cc
...
...
@@ -113,8 +113,11 @@ UINT DROP_CreateView(MSIDATABASE *db, MSIVIEW **view, LPCWSTR name)
return
ERROR_FUNCTION_FAILED
;
r
=
TABLE_CreateView
(
db
,
name
,
&
dv
->
table
);
if
(
r
!=
ERROR_SUCCESS
||
!
dv
->
table
)
if
(
r
!=
ERROR_SUCCESS
)
{
msi_free
(
dv
);
return
r
;
}
dv
->
view
.
ops
=
&
drop_ops
;
dv
->
db
=
db
;
...
...
dlls/msi/join.c
View file @
22a277cc
...
...
@@ -338,7 +338,10 @@ UINT JOIN_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR tables )
table
=
msi_alloc
(
sizeof
(
JOINTABLE
));
if
(
!
table
)
return
ERROR_OUTOFMEMORY
;
{
r
=
ERROR_OUTOFMEMORY
;
goto
end
;
}
r
=
TABLE_CreateView
(
db
,
tables
,
&
table
->
view
);
if
(
r
!=
ERROR_SUCCESS
)
...
...
dlls/msi/storages.c
View file @
22a277cc
...
...
@@ -559,8 +559,10 @@ UINT STORAGES_CreateView(MSIDATABASE *db, MSIVIEW **view)
rows
=
add_storages_to_table
(
sv
);
if
(
rows
<
0
)
{
msi_free
(
sv
);
return
ERROR_FUNCTION_FAILED
;
}
sv
->
num_rows
=
rows
;
*
view
=
(
MSIVIEW
*
)
sv
;
...
...
dlls/msi/streams.c
View file @
22a277cc
...
...
@@ -523,7 +523,10 @@ UINT STREAMS_CreateView(MSIDATABASE *db, MSIVIEW **view)
sv
->
db
=
db
;
rows
=
add_streams_to_table
(
sv
);
if
(
rows
<
0
)
{
msi_free
(
sv
);
return
ERROR_FUNCTION_FAILED
;
}
sv
->
num_rows
=
rows
;
*
view
=
(
MSIVIEW
*
)
sv
;
...
...
dlls/msi/update.c
View file @
22a277cc
...
...
@@ -261,7 +261,10 @@ UINT UPDATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
uv
=
msi_alloc_zero
(
sizeof
*
uv
);
if
(
!
uv
)
{
wv
->
ops
->
delete
(
wv
);
return
ERROR_FUNCTION_FAILED
;
}
/* fill the structure */
uv
->
view
.
ops
=
&
update_ops
;
...
...
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