mshtml: Get rid of unneeded parent from NSContainer.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-11-22 16:16:00 +01:00 committed by Alexandre Julliard
parent 3dd152dc59
commit 0f487987bc
2 changed files with 0 additions and 3 deletions

View File

@ -697,7 +697,6 @@ struct NSContainer {
nsWeakReference *weak_reference;
NSContainer *parent;
HTMLDocumentObj *doc;
nsIURIContentListener *content_listener;

View File

@ -1336,8 +1336,6 @@ static nsrefcnt NSAPI nsWebBrowserChrome_Release(nsIWebBrowserChrome *iface)
TRACE("(%p) ref=%d\n", This, ref);
if(!ref) {
if(This->parent)
nsIWebBrowserChrome_Release(&This->parent->nsIWebBrowserChrome_iface);
if(This->weak_reference) {
This->weak_reference->nscontainer = NULL;
nsIWeakReference_Release(&This->weak_reference->nsIWeakReference_iface);