Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7ea2e931
Commit
7ea2e931
authored
Nov 03, 2011
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Move clearing of processes to Terminate.
parent
03e0d96b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
cordebug.c
dlls/mscoree/cordebug.c
+13
-9
No files found.
dlls/mscoree/cordebug.c
View file @
7ea2e931
...
...
@@ -180,20 +180,13 @@ static ULONG WINAPI CorDebug_Release(ICorDebug *iface)
{
CorDebug
*
This
=
impl_from_ICorDebug
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
struct
CorProcess
*
cursor
,
*
cursor2
;
TRACE
(
"%p ref=%u
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
LIST_FOR_EACH_ENTRY_SAFE
(
cursor
,
cursor2
,
&
This
->
processes
,
struct
CorProcess
,
entry
)
{
if
(
cursor
->
pProcess
)
ICorDebugProcess_Release
(
cursor
->
pProcess
);
list_remove
(
&
cursor
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
cursor
);
}
if
(
!
list_empty
(
&
This
->
processes
))
ERR
(
"Processes haven't been removed Correctly
\n
"
);
if
(
This
->
runtimehost
)
ICLRRuntimeHost_Release
(
This
->
runtimehost
);
...
...
@@ -220,8 +213,19 @@ static HRESULT WINAPI CorDebug_Initialize(ICorDebug *iface)
static
HRESULT
WINAPI
CorDebug_Terminate
(
ICorDebug
*
iface
)
{
struct
CorProcess
*
cursor
,
*
cursor2
;
CorDebug
*
This
=
impl_from_ICorDebug
(
iface
);
FIXME
(
"stub %p
\n
"
,
This
);
LIST_FOR_EACH_ENTRY_SAFE
(
cursor
,
cursor2
,
&
This
->
processes
,
struct
CorProcess
,
entry
)
{
if
(
cursor
->
pProcess
)
ICorDebugProcess_Release
(
cursor
->
pProcess
);
list_remove
(
&
cursor
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
cursor
);
}
return
E_NOTIMPL
;
}
...
...
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