mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
androidmedia: Add more null checks to JNI utilities
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5136>
This commit is contained in:
parent
11595175e5
commit
903e116cc5
1 changed files with 2 additions and 0 deletions
|
@ -201,6 +201,7 @@ jobject
|
|||
gst_amc_jni_object_make_global (JNIEnv * env, jobject object)
|
||||
{
|
||||
jobject ret;
|
||||
g_return_val_if_fail (object != NULL, NULL);
|
||||
|
||||
ret = (*env)->NewGlobalRef (env, object);
|
||||
if (!ret) {
|
||||
|
@ -215,6 +216,7 @@ jobject
|
|||
gst_amc_jni_object_ref (JNIEnv * env, jobject object)
|
||||
{
|
||||
jobject ret;
|
||||
g_return_val_if_fail (object != NULL, NULL);
|
||||
|
||||
ret = (*env)->NewGlobalRef (env, object);
|
||||
if (!ret) {
|
||||
|
|
Loading…
Reference in a new issue