Merge "Delete a local ref in getSurface"
This commit is contained in:
committed by
Android (Google) Code Review
commit
564dae50b5
@@ -95,6 +95,7 @@ sp<Surface> android_view_Surface_getSurface(JNIEnv* env, jobject surfaceObj) {
|
||||
env->GetLongField(surfaceObj, gSurfaceClassInfo.mNativeObject));
|
||||
env->MonitorExit(lock);
|
||||
}
|
||||
env->DeleteLocalRef(lock);
|
||||
return sur;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user