Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca0adce7 authored by Alec Mouri's avatar Alec Mouri
Browse files

[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
parent b55d7214
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,