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

Commit b71cd0f5 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "ANativeWindow_fromSurface: Use acquire not incStrong" into sc-dev

parents f3dc01bf 86b378b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ using namespace android;
ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) {
    sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface);
    if (win != NULL) {
        win->incStrong((void*)ANativeWindow_fromSurface);
        ANativeWindow_acquire(win.get());
    }
    return win.get();
}