[libandroid_graphics] Add a missing release() call

RenderProxy acquires its own references to the ANativeWindow and does
not steal it, so there needs to be an additional ANativeWindow_release
call in setSurface

Test: builds
Test: interact with device
Change-Id: I598f57febf835cda7fb4195b19e03c3723698702
This commit is contained in:
Alec Mouri
2020-02-18 12:59:41 -08:00
parent b55d7214b0
commit ca0adce78b

View File

@@ -186,6 +186,7 @@ static void android_view_ThreadedRenderer_setSurface(JNIEnv* env, jobject clazz,
proxy->setSwapBehavior(SwapBehavior::kSwap_discardBuffer);
}
proxy->setSurface(window, enableTimeout);
ANativeWindow_release(window);
}
static jboolean android_view_ThreadedRenderer_pause(JNIEnv* env, jobject clazz,