зеркало из https://github.com/mozilla/gecko-dev.git
Changed back to initialize refcount to 1 instead of 0 for now.
This commit is contained in:
Родитель
a4ab4c3b6f
Коммит
609f2c04a5
|
@ -211,6 +211,10 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
|
|||
if (res != NS_OK) {
|
||||
delete inst;
|
||||
}
|
||||
else {
|
||||
NS_RELEASE(inst);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ nsWindow::nsWindow(nsISupports *aOuter):
|
|||
mOuter = aOuter;
|
||||
else
|
||||
mOuter = &mInner;
|
||||
mRefCnt = 0;
|
||||
mRefCnt = 1; // FIXTHIS
|
||||
|
||||
mGC = nsnull ;
|
||||
mShown = PR_FALSE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче