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

Commit 62ccaabe authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Lock in Surface#destroy" into tm-dev am: 15591134

parents a4bbecf5 15591134
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -341,11 +341,13 @@ public class Surface implements Parcelable {
     */
    @UnsupportedAppUsage
    public void destroy() {
        synchronized (mLock) {
            if (mNativeObject != 0) {
                nativeDestroy(mNativeObject);
            }
            release();
        }
    }

    /**
     * Destroys the HwuiContext without completely