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

Commit 76adcd6e authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am ea4e76f6: Merge "Fix finalizer ordering/double-free issue" into lmp-mr1-dev

* commit 'ea4e76f6':
  Fix finalizer ordering/double-free issue
parents 68d0089c ea4e76f6
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -604,15 +604,6 @@ public class Surface implements Parcelable {
                mHwuiRenderer = 0;
            }
        }

        @Override
        protected void finalize() throws Throwable {
            try {
                destroy();
            } finally {
                super.finalize();
            }
        }
    }

    private static native long nHwuiCreate(long rootNode, long surface);