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
e58b0dd0
Commit
e58b0dd0
authored
Apr 28, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Merge the Destroy functions into the coresponding Release functions.
parent
1c8bad80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
shlinstobj.c
dlls/shdocvw/shlinstobj.c
+7
-16
No files found.
dlls/shdocvw/shlinstobj.c
View file @
e58b0dd0
...
...
@@ -58,13 +58,6 @@ static inline RegistryPropertyBag *impl_from_IPropertyBag(IPropertyBag *iface)
return
CONTAINING_RECORD
(
iface
,
RegistryPropertyBag
,
IPropertyBag_iface
);
}
static
void
RegistryPropertyBag_Destroy
(
RegistryPropertyBag
*
This
)
{
TRACE
(
"This=%p)
\n
"
,
This
);
RegCloseKey
(
This
->
m_hInitPropertyBagKey
);
heap_free
(
This
);
}
static
HRESULT
WINAPI
RegistryPropertyBag_IPropertyBag_QueryInterface
(
IPropertyBag
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -110,8 +103,10 @@ static ULONG WINAPI RegistryPropertyBag_IPropertyBag_Release(IPropertyBag *iface
cRef
=
InterlockedDecrement
(
&
This
->
m_cRef
);
if
(
cRef
==
0
)
{
RegistryPropertyBag_Destroy
(
This
);
if
(
cRef
==
0
)
{
TRACE
(
"Destroying This=%p)
\n
"
,
This
);
RegCloseKey
(
This
->
m_hInitPropertyBagKey
);
heap_free
(
This
);
SHDOCVW_UnlockModule
();
}
...
...
@@ -214,11 +209,6 @@ static inline InstanceObjectFactory *impl_from_IClassFactory(IClassFactory *ifac
return
CONTAINING_RECORD
(
iface
,
InstanceObjectFactory
,
IClassFactory_iface
);
}
static
void
InstanceObjectFactory_Destroy
(
InstanceObjectFactory
*
This
)
{
IPropertyBag_Release
(
This
->
m_pPropertyBag
);
heap_free
(
This
);
}
static
HRESULT
WINAPI
InstanceObjectFactory_IClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -264,9 +254,10 @@ static ULONG WINAPI InstanceObjectFactory_IClassFactory_Release(IClassFactory *i
cRef
=
InterlockedDecrement
(
&
This
->
m_cRef
);
if
(
cRef
==
0
)
{
if
(
cRef
==
0
)
{
IClassFactory_LockServer
(
iface
,
FALSE
);
InstanceObjectFactory_Destroy
(
This
);
IPropertyBag_Release
(
This
->
m_pPropertyBag
);
heap_free
(
This
);
}
return
cRef
;
...
...
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