Hi, every one.
I got a crash, non reproductive, in the thread FinalizerDaemon
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x41c.
After several days of searching into the code of AOSP, i realised it is due to the call of SurfaceTexture.release() in the finalize() methode of my class who uses the SurfeceTexture to show a video in OpenGL scene.
My question is if I do not call SurfaceTexture.release(), may I got a memory leaks?
Second question, why in the code
static void SurfaceTexture_release(JNIEnv* env, jobject thiz)
{
sp<GLConsumer> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, thiz));
surfaceTexture->abandon();
}
Why do not check surfaceTexture is null or not, before use it?
Best regards