зеркало из 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
|
@ -209,8 +209,12 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
|
|||
nsresult res = inst->QueryObject(aIID, aResult);
|
||||
|
||||
if (res != NS_OK) {
|
||||
delete inst;
|
||||
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче