mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/jni: remove unnecessary NULL checks before calling DeleteLocalRef()
Delete{Global,Local}Ref() already handle NULL.
This commit is contained in:
parent
70ba15d2cf
commit
dab4124350
@ -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…
x
Reference in New Issue
Block a user