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
8fb7fdd0
Commit
8fb7fdd0
authored
Jun 10, 2009
by
Hib Eris
Committed by
Alexandre Julliard
Jun 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix a crash when freeing memory.
parent
a277da5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
streams.c
dlls/msi/streams.c
+3
-3
No files found.
dlls/msi/streams.c
View file @
8fb7fdd0
...
...
@@ -60,7 +60,7 @@ static BOOL streams_set_table_size(MSISTREAMSVIEW *sv, UINT size)
if
(
size
>=
sv
->
max_streams
)
{
sv
->
max_streams
*=
2
;
sv
->
streams
=
msi_realloc
(
sv
->
streams
,
sv
->
max_streams
*
sizeof
(
STREAM
*
));
sv
->
streams
=
msi_realloc
_zero
(
sv
->
streams
,
sv
->
max_streams
*
sizeof
(
STREAM
*
));
if
(
!
sv
->
streams
)
return
FALSE
;
}
...
...
@@ -387,7 +387,7 @@ static UINT STREAMS_delete(struct tagMSIVIEW *view)
for
(
i
=
0
;
i
<
sv
->
num_rows
;
i
++
)
{
if
(
sv
->
streams
[
i
]
->
stream
)
if
(
sv
->
streams
[
i
]
&&
sv
->
streams
[
i
]
->
stream
)
IStream_Release
(
sv
->
streams
[
i
]
->
stream
);
msi_free
(
sv
->
streams
[
i
]);
}
...
...
@@ -462,7 +462,7 @@ static INT add_streams_to_table(MSISTREAMSVIEW *sv)
return
-
1
;
sv
->
max_streams
=
1
;
sv
->
streams
=
msi_alloc
(
sizeof
(
STREAM
*
));
sv
->
streams
=
msi_alloc
_zero
(
sizeof
(
STREAM
*
));
if
(
!
sv
->
streams
)
return
-
1
;
...
...
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