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
c5ca3b00
Commit
c5ca3b00
authored
Aug 01, 2023
by
Sven Baars
Committed by
Alexandre Julliard
Aug 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix some critical section leaks (Valgrind).
parent
f03ae651
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
filesource.c
dlls/quartz/filesource.c
+3
-2
filtergraph.c
dlls/quartz/filtergraph.c
+2
-1
No files found.
dlls/quartz/filesource.c
View file @
c5ca3b00
...
...
@@ -333,14 +333,15 @@ static void async_reader_destroy(struct strmbase_filter *iface)
free
(
filter
->
requests
);
}
CloseHandle
(
filter
->
file
);
filter
->
sample_cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
filter
->
sample_cs
);
strmbase_source_cleanup
(
&
filter
->
source
);
free
(
filter
->
pszFileName
);
FreeMediaType
(
&
filter
->
mt
);
}
filter
->
sample_cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
filter
->
sample_cs
);
PostQueuedCompletionStatus
(
filter
->
port
,
0
,
1
,
NULL
);
WaitForSingleObject
(
filter
->
io_thread
,
INFINITE
);
CloseHandle
(
filter
->
io_thread
);
...
...
dlls/quartz/filtergraph.c
View file @
c5ca3b00
...
...
@@ -486,8 +486,9 @@ static ULONG WINAPI FilterGraphInner_Release(IUnknown *iface)
}
LeaveCriticalSection
(
&
message_cs
);
This
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
This
->
event_
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
event_cs
);
This
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
cs
);
free
(
This
);
}
...
...
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