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
27ae589d
Commit
27ae589d
authored
Apr 10, 2015
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Fix crash when PNG decoder is freed without successful init.
parent
2da8f9a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pngformat.c
dlls/windowscodecs/pngformat.c
+3
-1
No files found.
dlls/windowscodecs/pngformat.c
View file @
27ae589d
...
...
@@ -442,7 +442,8 @@ static ULONG WINAPI PngDecoder_Release(IWICBitmapDecoder *iface)
if
(
ref
==
0
)
{
IStream_Release
(
This
->
stream
);
if
(
This
->
stream
)
IStream_Release
(
This
->
stream
);
if
(
This
->
png_ptr
)
ppng_destroy_read_struct
(
&
This
->
png_ptr
,
&
This
->
info_ptr
,
&
This
->
end_info
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
0
;
...
...
@@ -1218,6 +1219,7 @@ HRESULT PngDecoder_CreateInstance(REFIID iid, void** ppv)
This
->
png_ptr
=
NULL
;
This
->
info_ptr
=
NULL
;
This
->
end_info
=
NULL
;
This
->
stream
=
NULL
;
This
->
initialized
=
FALSE
;
This
->
image_bits
=
NULL
;
InitializeCriticalSection
(
&
This
->
lock
);
...
...
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