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
6414eb6d
Commit
6414eb6d
authored
Nov 18, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Free ConnectionPoint objects (fix memory leak).
parent
ced7436f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
events.c
dlls/shdocvw/events.c
+7
-0
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+1
-0
No files found.
dlls/shdocvw/events.c
View file @
6414eb6d
...
...
@@ -233,3 +233,10 @@ void WebBrowser_Events_Init(WebBrowser *This)
ConnectionPoint_Create
(
This
,
&
DIID_DWebBrowserEvents
,
&
This
->
cp_wbe
);
ConnectionPoint_Create
(
This
,
&
IID_IPropertyNotifySink
,
&
This
->
cp_pns
);
}
void
WebBrowser_Events_Destroy
(
WebBrowser
*
This
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
cp_wbe2
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
cp_wbe
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
cp_pns
);
}
dlls/shdocvw/shdocvw.h
View file @
6414eb6d
...
...
@@ -131,6 +131,7 @@ void WebBrowser_ClientSite_Init(WebBrowser*);
void
WebBrowser_DocHost_Init
(
WebBrowser
*
);
void
WebBrowser_OleObject_Destroy
(
WebBrowser
*
);
void
WebBrowser_Events_Destroy
(
WebBrowser
*
);
HRESULT
WebBrowser_Create
(
IUnknown
*
,
REFIID
,
void
**
);
...
...
dlls/shdocvw/webbrowser.c
View file @
6414eb6d
...
...
@@ -125,6 +125,7 @@ static ULONG WINAPI WebBrowser_Release(IWebBrowser2 *iface)
IUnknown_Release
(
This
->
document
);
WebBrowser_OleObject_Destroy
(
This
);
WebBrowser_Events_Destroy
(
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
SHDOCVW_UnlockModule
();
...
...
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