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
a84e7d7b
Commit
a84e7d7b
authored
Jan 14, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Destroy stubs on apartment shutdown.
parent
7cf104aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
compobj.c
dlls/ole32/compobj.c
+15
-2
No files found.
dlls/ole32/compobj.c
View file @
a84e7d7b
...
@@ -305,17 +305,30 @@ DWORD COM_ApartmentRelease(struct apartment *apt)
...
@@ -305,17 +305,30 @@ DWORD COM_ApartmentRelease(struct apartment *apt)
if
(
ret
==
0
)
if
(
ret
==
0
)
{
{
struct
list
*
cursor
,
*
cursor2
;
TRACE
(
"destroying apartment %p, oxid %s
\n
"
,
apt
,
wine_dbgstr_longlong
(
apt
->
oxid
));
TRACE
(
"destroying apartment %p, oxid %s
\n
"
,
apt
,
wine_dbgstr_longlong
(
apt
->
oxid
));
MARSHAL_Disconnect_Proxies
(
apt
);
MARSHAL_Disconnect_Proxies
(
apt
);
if
(
apt
->
win
)
DestroyWindow
(
apt
->
win
);
if
(
apt
->
win
)
DestroyWindow
(
apt
->
win
);
if
(
!
list_empty
(
&
apt
->
stubmgrs
)
)
LIST_FOR_EACH_SAFE
(
cursor
,
cursor2
,
&
apt
->
stubmgrs
)
{
{
FIXME
(
"Destroy outstanding stubs
\n
"
);
struct
stub_manager
*
stubmgr
=
LIST_ENTRY
(
cursor
,
struct
stub_manager
,
entry
);
/* release the implicit reference given by the fact that the
* stub has external references (it must do since it is in the
* stub manager list in the apartment and all non-apartment users
* must have a ref on the apartment and so it cannot be destroyed).
*/
stub_manager_int_release
(
stubmgr
);
}
}
/* if this assert fires, then another thread took a reference to a
* stub manager without taking a reference to the containing
* apartment, which it must do. */
assert
(
list_empty
(
&
apt
->
stubmgrs
));
if
(
apt
->
filter
)
IUnknown_Release
(
apt
->
filter
);
if
(
apt
->
filter
)
IUnknown_Release
(
apt
->
filter
);
DeleteCriticalSection
(
&
apt
->
cs
);
DeleteCriticalSection
(
&
apt
->
cs
);
...
...
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