mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
added additional cleanup when shutting down the websidget so that the
ViwManager will actually go away.
This commit is contained in:
parent
46a1090996
commit
37f645e48b
@ -155,7 +155,13 @@ NS_IMPL_RELEASE(WebWidgetImpl)
|
||||
WebWidgetImpl::~WebWidgetImpl()
|
||||
{
|
||||
// Release windows and views
|
||||
NS_IF_RELEASE(mViewManager);
|
||||
if (nsnull != mViewManager)
|
||||
{
|
||||
mViewManager->SetRootView(nsnull);
|
||||
mViewManager->SetRootWindow(nsnull);
|
||||
NS_RELEASE(mViewManager);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mWindow);
|
||||
NS_IF_RELEASE(mView);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user