Skip to content

Commit

Permalink
GH-71 Fix failure to create the Post4 context.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirWumpus committed Nov 12, 2024
1 parent 3033c10 commit 714d5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jni/Post4.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ Java_post4_jni_Post4_p4Create(JNIEnv *env, jobject self, jobject opts)
(*env)->DeleteLocalRef(env, clazz);

if (ctx == NULL) {
(*env)->Throw(env, (*env)->FindClass(env, "java/lang/OutOfMemory"));
(*env)->FatalError(env, "cannot create Post4 context");
}

p4HookInit(ctx, jHooks);
Expand Down

0 comments on commit 714d5e5

Please sign in to comment.