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

Commit 23ce6fa2 authored by Yang Ni's avatar Yang Ni
Browse files

Destroy Allocation with ScriptIntrinsicLut

Bug: 28053584

On destroying the intrinsic, destroy its contained Allocation right away.

Test: CTS on x86_64 emulator
Change-Id: I5ca0da33b620c3291b7cafda31a6cc83eb7461a0
(cherry picked from commit 8b8f75a7)
parent 8cfb1a95
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -56,6 +56,10 @@ public final class ScriptIntrinsicLUT extends ScriptIntrinsic {


    }
    }


    public void destroy() {
        mTables.destroy();
        super.destroy();
    }


    private void validate(int index, int value) {
    private void validate(int index, int value) {
        if (index < 0 || index > 255) {
        if (index < 0 || index > 255) {