Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d3972880
Commit
d3972880
authored
Jan 04, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix memory leaks.
parent
386fdd81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
write_msft.c
tools/widl/write_msft.c
+6
-1
No files found.
tools/widl/write_msft.c
View file @
d3972880
...
...
@@ -2525,7 +2525,11 @@ int create_msft_typelib(typelib_t *typelib)
if
(
ctl2_alloc_segment
(
msft
,
MSFT_SEG_GUIDHASH
,
0x80
,
0x80
))
{
failed
=
1
;
}
if
(
ctl2_alloc_segment
(
msft
,
MSFT_SEG_NAMEHASH
,
0x200
,
0x200
))
{
failed
=
1
;
}
if
(
failed
)
return
0
;
if
(
failed
)
{
free
(
msft
);
return
0
;
}
msft
->
typelib_guidhash_segment
=
(
int
*
)
msft
->
typelib_segment_data
[
MSFT_SEG_GUIDHASH
];
msft
->
typelib_namehash_segment
=
(
int
*
)
msft
->
typelib_segment_data
[
MSFT_SEG_NAMEHASH
];
...
...
@@ -2557,5 +2561,6 @@ int create_msft_typelib(typelib_t *typelib)
add_entry
(
msft
,
entry
);
save_all_changes
(
msft
);
free
(
msft
);
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