зеркало из https://github.com/mozilla/pjs.git
Changed back to initialize refcount to 1 instead of 0 for now.
This commit is contained in:
Родитель
1f943f58b1
Коммит
bc0cf53fbf
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче