This commit is contained in:
bryner%brianryner.com 2004-01-15 06:43:38 +00:00
Родитель a71fdf6c5c
Коммит 9c6d198eba
1 изменённых файлов: 4 добавлений и 5 удалений

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

@ -134,15 +134,14 @@ nsresult nsTestComFactory::CreateInstance(nsISupports *aOuter,
return NS_ERROR_OUT_OF_MEMORY;
}
NS_ADDREF(t)
nsresult res = t->QueryInterface(aIID, aResult);
NS_RELEASE(t);
if (NS_FAILED(res)) {
*aResult = NULL;
delete t;
if (NS_SUCCEEDED(res)) {
cout << "nsTestComFactory: successfully created nsTestCom instance\n";
}
cout << "nsTestComFactory: successfully created nsTestCom instance\n";
return res;
}