Commit 6414eb6d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

Free ConnectionPoint objects (fix memory leak).

parent ced7436f
......@@ -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);
}
......@@ -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**);
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment