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
b42243e8
Commit
b42243e8
authored
Aug 31, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Properly release DispatchEx data.
parent
012004bc
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
45 additions
and
2 deletions
+45
-2
dispex.c
dlls/mshtml/dispex.c
+31
-0
htmlcurstyle.c
dlls/mshtml/htmlcurstyle.c
+1
-0
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-0
htmlelemcol.c
dlls/mshtml/htmlelemcol.c
+1
-0
htmlevent.c
dlls/mshtml/htmlevent.c
+3
-1
htmllocation.c
dlls/mshtml/htmllocation.c
+1
-0
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-0
htmlstyle.c
dlls/mshtml/htmlstyle.c
+1
-0
htmlwindow.c
dlls/mshtml/htmlwindow.c
+1
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
omnavigator.c
dlls/mshtml/omnavigator.c
+3
-1
No files found.
dlls/mshtml/dispex.c
View file @
b42243e8
...
...
@@ -946,9 +946,40 @@ BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
return
TRUE
;
}
void
release_dispex
(
DispatchEx
*
This
)
{
dynamic_prop_t
*
prop
;
if
(
!
This
->
dynamic_data
)
return
;
for
(
prop
=
This
->
dynamic_data
->
props
;
prop
<
This
->
dynamic_data
->
props
+
This
->
dynamic_data
->
prop_cnt
;
prop
++
)
{
VariantClear
(
&
prop
->
var
);
heap_free
(
prop
->
name
);
}
heap_free
(
This
->
dynamic_data
->
props
);
if
(
This
->
dynamic_data
->
func_disps
)
{
unsigned
i
;
for
(
i
=
0
;
i
<
This
->
data
->
data
->
func_disp_cnt
;
i
++
)
{
if
(
This
->
dynamic_data
->
func_disps
[
i
])
{
release_dispex
(
&
This
->
dynamic_data
->
func_disps
[
i
]
->
dispex
);
heap_free
(
This
->
dynamic_data
->
func_disps
[
i
]);
}
}
heap_free
(
This
->
dynamic_data
->
func_disps
);
}
heap_free
(
This
->
dynamic_data
);
}
void
init_dispex
(
DispatchEx
*
dispex
,
IUnknown
*
outer
,
dispex_static_data_t
*
data
)
{
dispex
->
lpIDispatchExVtbl
=
&
DispatchExVtbl
;
dispex
->
outer
=
outer
;
dispex
->
data
=
data
;
dispex
->
dynamic_data
=
NULL
;
}
dlls/mshtml/htmlcurstyle.c
View file @
b42243e8
...
...
@@ -90,6 +90,7 @@ static ULONG WINAPI HTMLCurrentStyle_Release(IHTMLCurrentStyle *iface)
if
(
!
ref
)
{
if
(
This
->
nsstyle
)
nsIDOMCSSStyleDeclaration_Release
(
This
->
nsstyle
);
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
...
...
dlls/mshtml/htmldoc.c
View file @
b42243e8
...
...
@@ -215,6 +215,7 @@ static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
detach_selection
(
This
);
detach_ranges
(
This
);
release_nodes
(
This
);
release_dispex
(
&
This
->
dispex
);
ConnectionPointContainer_Destroy
(
&
This
->
cp_container
);
...
...
dlls/mshtml/htmlelemcol.c
View file @
b42243e8
...
...
@@ -132,6 +132,7 @@ static ULONG WINAPI HTMLElementCollection_Release(IHTMLElementCollection *iface)
if
(
!
ref
)
{
IUnknown_Release
(
This
->
ref_unk
);
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
->
elems
);
heap_free
(
This
);
}
...
...
dlls/mshtml/htmlevent.c
View file @
b42243e8
...
...
@@ -176,8 +176,10 @@ static ULONG WINAPI HTMLEventObj_Release(IHTMLEventObj *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
if
(
!
ref
)
{
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
return
ref
;
}
...
...
dlls/mshtml/htmllocation.c
View file @
b42243e8
...
...
@@ -82,6 +82,7 @@ static ULONG WINAPI HTMLLocation_Release(IHTMLLocation *iface)
if
(
!
ref
)
{
if
(
This
->
doc
&&
This
->
doc
->
location
==
This
)
This
->
doc
->
location
=
NULL
;
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
...
...
dlls/mshtml/htmlnode.c
View file @
b42243e8
...
...
@@ -308,6 +308,7 @@ static ULONG WINAPI HTMLDOMNode_Release(IHTMLDOMNode *iface)
if
(
!
ref
)
{
This
->
vtbl
->
destructor
(
This
);
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
...
...
dlls/mshtml/htmlstyle.c
View file @
b42243e8
...
...
@@ -554,6 +554,7 @@ static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
if
(
!
ref
)
{
if
(
This
->
nsstyle
)
nsIDOMCSSStyleDeclaration_Release
(
This
->
nsstyle
);
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
...
...
dlls/mshtml/htmlwindow.c
View file @
b42243e8
...
...
@@ -93,6 +93,7 @@ static ULONG WINAPI HTMLWindow2_Release(IHTMLWindow2 *iface)
if
(
!
ref
)
{
list_remove
(
&
This
->
entry
);
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
...
...
dlls/mshtml/mshtml_private.h
View file @
b42243e8
...
...
@@ -149,6 +149,7 @@ typedef struct {
}
DispatchEx
;
void
init_dispex
(
DispatchEx
*
,
IUnknown
*
,
dispex_static_data_t
*
);
void
release_dispex
(
DispatchEx
*
);
BOOL
dispex_query_interface
(
DispatchEx
*
,
REFIID
,
void
**
);
HRESULT
dispex_get_dprop_ref
(
DispatchEx
*
,
const
WCHAR
*
,
BOOL
,
VARIANT
**
);
...
...
dlls/mshtml/omnavigator.c
View file @
b42243e8
...
...
@@ -84,8 +84,10 @@ static ULONG WINAPI OmNavigator_Release(IOmNavigator *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
if
(
!
ref
)
{
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
return
ref
;
}
...
...
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