avcodec/jni: remove unnecessary NULL checks before calling DeleteLocalRef()

Delete{Global,Local}Ref() already handle NULL.
release/7.0
Matthieu Bouron 12 months ago
parent 70ba15d2cf
commit dab4124350
  1. 14
      libavcodec/ffjni.c

@ -236,17 +236,9 @@ done:
av_free(name);
av_free(message);
if (class_class) {
(*env)->DeleteLocalRef(env, class_class);
}
if (exception_class) {
(*env)->DeleteLocalRef(env, exception_class);
}
if (string) {
(*env)->DeleteLocalRef(env, string);
}
(*env)->DeleteLocalRef(env, class_class);
(*env)->DeleteLocalRef(env, exception_class);
(*env)->DeleteLocalRef(env, string);
return ret;
}

Loading…
Cancel
Save