Merge "SurfaceControl: C++ Binding Lifetime refactoring"

This commit is contained in:
Rob Carr
2020-02-18 19:07:00 +00:00
committed by Android (Google) Code Review

View File

@@ -236,7 +236,6 @@ static jlong nativeCreate(JNIEnv* env, jclass clazz, jobject sessionObj,
static void nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) {
sp<SurfaceControl> ctrl(reinterpret_cast<SurfaceControl *>(nativeObject));
ctrl->release();
ctrl->decStrong((void *)nativeCreate);
}