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
2e32c0c6
Commit
2e32c0c6
authored
Aug 21, 2016
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Avoid double free (Coverity).
Signed-off-by:
Marcus Meissner
<
marcus@jet.franken.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e7a56825
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+2
-7
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
2e32c0c6
...
...
@@ -1005,13 +1005,8 @@ static HRESULT write_native_icon(IStream *iconStream, ICONDIRENTRY *pIconDirEntr
position
.
QuadPart
=
0
;
hr
=
IStream_Seek
(
iconStream
,
position
,
STREAM_SEEK_SET
,
NULL
);
if
(
FAILED
(
hr
))
goto
end
;
hr
=
convert_to_native_icon
(
iconStream
,
&
nIndex
,
1
,
&
CLSID_WICPngEncoder
,
icon_name
,
szFileName
);
end:
HeapFree
(
GetProcessHeap
(),
0
,
pIconDirEntry
);
return
hr
;
if
(
FAILED
(
hr
))
return
hr
;
return
convert_to_native_icon
(
iconStream
,
&
nIndex
,
1
,
&
CLSID_WICPngEncoder
,
icon_name
,
szFileName
);
}
static
WCHAR
*
assoc_query
(
ASSOCSTR
assocStr
,
LPCWSTR
name
,
LPCWSTR
extra
)
...
...
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