зеркало из https://github.com/mozilla/gecko-dev.git
Updates
This commit is contained in:
Родитель
505152776a
Коммит
74a0e5a4ea
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче