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
31aa91c9
Commit
31aa91c9
authored
Aug 20, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Avoid leaking async ops on release or multiple close.
parent
e5bf17d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+8
-0
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
31aa91c9
...
...
@@ -267,12 +267,20 @@ static HRESULT open_stream(struct async_reader *reader, IWMReaderCallback *callb
static
void
close_stream
(
struct
async_reader
*
reader
)
{
struct
async_op
*
op
,
*
next
;
if
(
reader
->
callback_thread
)
{
WaitForSingleObject
(
reader
->
callback_thread
,
INFINITE
);
CloseHandle
(
reader
->
callback_thread
);
reader
->
callback_thread
=
NULL
;
}
LIST_FOR_EACH_ENTRY_SAFE
(
op
,
next
,
&
reader
->
async_ops
,
struct
async_op
,
entry
)
{
list_remove
(
&
op
->
entry
);
free
(
op
);
}
}
static
HRESULT
async_reader_queue_op
(
struct
async_reader
*
reader
,
enum
async_op_type
type
,
void
*
context
)
...
...
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