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
996c1152
Commit
996c1152
authored
Dec 02, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use operator_delete to free _Condition_variable queue nodes.
parent
466f31dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
concurrency.c
dlls/msvcrt/concurrency.c
+3
-3
No files found.
dlls/msvcrt/concurrency.c
View file @
996c1152
...
...
@@ -2656,7 +2656,7 @@ void __thiscall _Condition_variable_dtor(_Condition_variable *this)
cv_queue
*
next
=
this
->
queue
->
next
;
if
(
!
this
->
queue
->
expired
)
ERR
(
"there's an active wait
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
this
->
queue
);
operator_delete
(
this
->
queue
);
this
->
queue
=
next
;
}
critical_section_dtor
(
&
this
->
lock
);
...
...
@@ -2753,7 +2753,7 @@ void __thiscall _Condition_variable_notify_one(_Condition_variable *this)
RtlWakeAddressSingle
(
&
node
->
next
);
return
;
}
else
{
HeapFree
(
GetProcessHeap
(),
0
,
node
);
operator_delete
(
node
);
}
}
}
...
...
@@ -2782,7 +2782,7 @@ void __thiscall _Condition_variable_notify_all(_Condition_variable *this)
if
(
!
InterlockedExchange
(
&
ptr
->
expired
,
TRUE
))
RtlWakeAddressSingle
(
&
ptr
->
next
);
else
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
operator_delete
(
ptr
);
ptr
=
next
;
}
}
...
...
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