Changed back to initialize refcount to 1 instead of 0 for now.

This commit is contained in:
kmcclusk%netscape.com 1998-07-30 17:37:26 +00:00
Родитель a4ab4c3b6f
Коммит 609f2c04a5
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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;