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
This commit is contained in:
Yang Ni
2017-04-28 08:50:33 -07:00
parent 19cd7568c6
commit 8b8f75a700

View File

@@ -56,6 +56,10 @@ public final class ScriptIntrinsicLUT extends ScriptIntrinsic {
}
public void destroy() {
mTables.destroy();
super.destroy();
}
private void validate(int index, int value) {
if (index < 0 || index > 255) {