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
7f617230
Commit
7f617230
authored
Jun 25, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Destroy connection points.
parent
bf1724ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
conpoint.c
dlls/mshtml/conpoint.c
+20
-0
htmldoc.c
dlls/mshtml/htmldoc.c
+2
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
No files found.
dlls/mshtml/conpoint.c
View file @
7f617230
...
...
@@ -197,6 +197,19 @@ static void ConnectionPoint_Create(HTMLDocument *doc, REFIID riid, ConnectionPoi
*
cp
=
ret
;
}
static
void
ConnectionPoint_Destroy
(
ConnectionPoint
*
This
)
{
int
i
;
for
(
i
=
0
;
i
<
This
->
sinks_size
;
i
++
)
{
if
(
This
->
sinks
[
i
].
unk
)
IUnknown_Release
(
This
->
sinks
[
i
].
unk
);
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
sinks
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
#define CONPTCONT_THIS(iface) DEFINE_THIS(HTMLDocument, ConnectionPointContainer, iface)
static
HRESULT
WINAPI
ConnectionPointContainer_QueryInterface
(
IConnectionPointContainer
*
iface
,
...
...
@@ -271,3 +284,10 @@ void HTMLDocument_ConnectionPoints_Init(HTMLDocument *This)
ConnectionPoint_Create
(
This
,
&
DIID_HTMLDocumentEvents
,
&
This
->
cp_htmldocevents
);
ConnectionPoint_Create
(
This
,
&
DIID_HTMLDocumentEvents2
,
&
This
->
cp_htmldocevents2
);
}
void
HTMLDocument_ConnectionPoints_Destroy
(
HTMLDocument
*
This
)
{
ConnectionPoint_Destroy
(
This
->
cp_propnotif
);
ConnectionPoint_Destroy
(
This
->
cp_htmldocevents
);
ConnectionPoint_Destroy
(
This
->
cp_htmldocevents2
);
}
dlls/mshtml/htmldoc.c
View file @
7f617230
...
...
@@ -157,6 +157,8 @@ static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
release_nodes
(
This
);
HTMLDocument_ConnectionPoints_Destroy
(
This
);
if
(
This
->
nscontainer
)
NSContainer_Release
(
This
->
nscontainer
);
...
...
dlls/mshtml/mshtml_private.h
View file @
7f617230
...
...
@@ -260,6 +260,8 @@ void HTMLDocument_Service_Init(HTMLDocument*);
void
HTMLDocument_Hlink_Init
(
HTMLDocument
*
);
void
HTMLDocument_ConnectionPoints_Init
(
HTMLDocument
*
);
void
HTMLDocument_ConnectionPoints_Destroy
(
HTMLDocument
*
);
NSContainer
*
NSContainer_Create
(
HTMLDocument
*
,
NSContainer
*
);
void
NSContainer_Release
(
NSContainer
*
);
...
...
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