This commit is contained in:
law%netscape.com 1999-04-22 00:27:39 +00:00
Родитель 505152776a
Коммит 74a0e5a4ea
2 изменённых файлов: 5 добавлений и 2 удалений

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

@ -53,7 +53,7 @@ class nsIDocument;
| 5. Release() the search context object and the find component when the |
| browser window closes. |
------------------------------------------------------------------------------*/
struct nsIFindComponent : public nsISupports {
struct nsIFindComponent : public nsIAppShellComponent {
NS_DEFINE_STATIC_IID_ACCESSOR( NS_IFINDCOMPONENT_IID )
/*---------------------------- CreateContext -------------------------------

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

@ -173,7 +173,10 @@ nsFindComponent::CreateContext( nsIDocument *aDocument,
mLastSearchString,
mLastIgnoreCase,
mLastSearchBackward );
if ( !*aResult ) {
if ( *aResult ) {
// Do the expected on behalf of caller.
(*aResult)->AddRef();
} else {
// Allocation failed.
rv = NS_ERROR_OUT_OF_MEMORY;
}