diff options
| author | 2017-04-28 08:50:33 -0700 | |
|---|---|---|
| committer | 2017-05-05 08:47:33 -0700 | |
| commit | 23ce6fa2e944fd5be3617c4e4b37b72cbd97042e (patch) | |
| tree | 4ca7e09b3d6bc4ddec120057322efa42a2ea737e | |
| parent | 8cfb1a95dac102bbe2dbb931df0dd60da083ee2c (diff) | |
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 8b8f75a7006eceaf7eca042e982b6827741a1e2f)
| -rw-r--r-- | rs/java/android/renderscript/ScriptIntrinsicLUT.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/ScriptIntrinsicLUT.java b/rs/java/android/renderscript/ScriptIntrinsicLUT.java index 69ff64acdf90..e90462d11124 100644 --- a/rs/java/android/renderscript/ScriptIntrinsicLUT.java +++ b/rs/java/android/renderscript/ScriptIntrinsicLUT.java @@ -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) { |