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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user