mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 05:00:13 -10:00
Throw exception before freeing globals.
This commit is contained in:
1 parent
466a04fb87
commit
8aeddf6dab
1 file changed
+2
-2
@@ -82,8 +82,8 @@ GECKO_NATIVE(initEmbedding) (JNIEnv* env, jclass, jobject aMozBinDirectory,
|
||||
}
|
||||
}
|
||||
|
||||
FreeJavaGlobals(env);
|
||||
ThrowXPCOMException(env, NS_FAILED(rv) ? rv : NS_ERROR_FAILURE);
|
||||
FreeJavaGlobals(env);
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
@@ -142,8 +142,8 @@ XPCOM_NATIVE(initXPCOM) (JNIEnv* env, jclass, jobject aMozBinDirectory,
|
||||
}
|
||||
}
|
||||
|
||||
FreeJavaGlobals(env);
|
||||
ThrowXPCOMException(env, NS_FAILED(rv) ? rv : NS_ERROR_FAILURE);
|
||||
FreeJavaGlobals(env);
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user