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
831b7371
Commit
831b7371
authored
Jun 06, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Fix memory leak in ComponentFactory_CreateBitmapFromSource.
parent
8340636c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
imgfactory.c
dlls/windowscodecs/imgfactory.c
+10
-8
No files found.
dlls/windowscodecs/imgfactory.c
View file @
831b7371
...
...
@@ -547,20 +547,22 @@ static HRESULT WINAPI ComponentFactory_CreateBitmapFromSource(IWICComponentFacto
IWICBitmapLock_Release
(
lock
);
}
if
(
SUCCEEDED
(
hr
))
hr
=
PaletteImpl_Create
(
&
palette
);
if
(
SUCCEEDED
(
hr
)
&&
(
format_type
==
WICPixelFormatNumericRepresentationUnspecified
||
format_type
==
WICPixelFormatNumericRepresentationIndexed
))
{
hr
=
IWICBitmapSource_CopyPalette
(
piBitmapSource
,
palette
);
hr
=
PaletteImpl_Create
(
&
palette
);
if
(
SUCCEEDED
(
hr
))
hr
=
IWICBitmap_SetPalette
(
result
,
palette
);
else
hr
=
S_OK
;
{
hr
=
IWICBitmapSource_CopyPalette
(
piBitmapSource
,
palette
);
if
(
SUCCEEDED
(
hr
))
hr
=
IWICBitmap_SetPalette
(
result
,
palette
);
else
hr
=
S_OK
;
IWICPalette_Release
(
palette
);
IWICPalette_Release
(
palette
);
}
}
if
(
SUCCEEDED
(
hr
))
...
...
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