added additional cleanup when shutting down the websidget so that the
ViwManager will actually go away.
This commit is contained in:
Родитель
e71ffe42ec
Коммит
a7be1a1524
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче