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
d28ded3d
Commit
d28ded3d
authored
Mar 17, 2000
by
Andrew Lewycky
Committed by
Alexandre Julliard
Mar 17, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid a refcount leak in QueryInterface when delegating.
And a couple of minor bugs.
parent
d33bcb61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
defaulthandler.c
dlls/ole32/defaulthandler.c
+6
-5
No files found.
dlls/ole32/defaulthandler.c
View file @
d28ded3d
...
...
@@ -532,7 +532,7 @@ static void DefaultHandler_Destroy(
*/
if
(
ptrToDestroy
->
oleAdviseHolder
!=
NULL
)
{
IOle
ClientSite
_Release
(
ptrToDestroy
->
oleAdviseHolder
);
IOle
AdviseHolder
_Release
(
ptrToDestroy
->
oleAdviseHolder
);
ptrToDestroy
->
oleAdviseHolder
=
NULL
;
}
...
...
@@ -541,7 +541,7 @@ static void DefaultHandler_Destroy(
*/
if
(
ptrToDestroy
->
dataAdviseHolder
!=
NULL
)
{
I
OleClientSite
_Release
(
ptrToDestroy
->
dataAdviseHolder
);
I
DataAdviseHolder
_Release
(
ptrToDestroy
->
dataAdviseHolder
);
ptrToDestroy
->
dataAdviseHolder
=
NULL
;
}
...
...
@@ -607,7 +607,8 @@ static HRESULT WINAPI DefaultHandler_NDIUnknown_QueryInterface(
/*
* Blind aggregate the data cache to "inherit" it's interfaces.
*/
IUnknown_QueryInterface
(
this
->
dataCache
,
riid
,
ppvObject
);
if
(
IUnknown_QueryInterface
(
this
->
dataCache
,
riid
,
ppvObject
)
==
S_OK
)
return
S_OK
;
}
/*
...
...
@@ -780,9 +781,9 @@ static HRESULT WINAPI DefaultHandler_GetClientSite(
*
ppClientSite
=
this
->
clientSite
;
if
(
*
ppClientSite
!=
NULL
)
if
(
this
->
clientSite
!=
NULL
)
{
IOleClientSite_
Release
(
*
ppC
lientSite
);
IOleClientSite_
AddRef
(
this
->
c
lientSite
);
}
return
S_OK
;
...
...
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