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
ea4c506c
Commit
ea4c506c
authored
Jun 05, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.gaming.input: Fix a leak on error path (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
631f4d5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
async.c
dlls/windows.gaming.input/async.c
+6
-1
No files found.
dlls/windows.gaming.input/async.c
View file @
ea4c506c
...
@@ -335,6 +335,7 @@ static HRESULT async_info_create( IUnknown *invoker, IUnknown *param, async_oper
...
@@ -335,6 +335,7 @@ static HRESULT async_info_create( IUnknown *invoker, IUnknown *param, async_oper
IInspectable
*
outer
,
IWineAsyncInfoImpl
**
out
)
IInspectable
*
outer
,
IWineAsyncInfoImpl
**
out
)
{
{
struct
async_info
*
impl
;
struct
async_info
*
impl
;
HRESULT
hr
;
if
(
!
(
impl
=
calloc
(
1
,
sizeof
(
struct
async_info
)
)))
return
E_OUTOFMEMORY
;
if
(
!
(
impl
=
calloc
(
1
,
sizeof
(
struct
async_info
)
)))
return
E_OUTOFMEMORY
;
impl
->
IWineAsyncInfoImpl_iface
.
lpVtbl
=
&
async_impl_vtbl
;
impl
->
IWineAsyncInfoImpl_iface
.
lpVtbl
=
&
async_impl_vtbl
;
...
@@ -346,7 +347,11 @@ static HRESULT async_info_create( IUnknown *invoker, IUnknown *param, async_oper
...
@@ -346,7 +347,11 @@ static HRESULT async_info_create( IUnknown *invoker, IUnknown *param, async_oper
impl
->
handler
=
HANDLER_NOT_SET
;
impl
->
handler
=
HANDLER_NOT_SET
;
impl
->
status
=
Started
;
impl
->
status
=
Started
;
if
(
!
(
impl
->
async_run_work
=
CreateThreadpoolWork
(
async_info_callback
,
&
impl
->
IWineAsyncInfoImpl_iface
,
NULL
)))
if
(
!
(
impl
->
async_run_work
=
CreateThreadpoolWork
(
async_info_callback
,
&
impl
->
IWineAsyncInfoImpl_iface
,
NULL
)))
return
HRESULT_FROM_WIN32
(
GetLastError
()
);
{
hr
=
HRESULT_FROM_WIN32
(
GetLastError
()
);
free
(
impl
);
return
hr
;
}
if
((
impl
->
invoker
=
invoker
))
IUnknown_AddRef
(
impl
->
invoker
);
if
((
impl
->
invoker
=
invoker
))
IUnknown_AddRef
(
impl
->
invoker
);
if
((
impl
->
param
=
param
))
IUnknown_AddRef
(
impl
->
param
);
if
((
impl
->
param
=
param
))
IUnknown_AddRef
(
impl
->
param
);
...
...
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