Loading rs/java/android/renderscript/ScriptGroup.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -1074,7 +1074,11 @@ public final class ScriptGroup extends BaseObj { protected void finalize() throws Throwable { protected void finalize() throws Throwable { // Clear out the list mClosures to avoid double-destroying the closures, // Clear out the list mClosures to avoid double-destroying the closures, // in case their finalizers race ahead. // in case their finalizers race ahead. if (mClosures != null) { // ScriptGroup created using the old Builder class does not // initialize the field mClosures mClosures.clear(); mClosures.clear(); } super.finalize(); super.finalize(); } } } } Loading
rs/java/android/renderscript/ScriptGroup.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -1074,7 +1074,11 @@ public final class ScriptGroup extends BaseObj { protected void finalize() throws Throwable { protected void finalize() throws Throwable { // Clear out the list mClosures to avoid double-destroying the closures, // Clear out the list mClosures to avoid double-destroying the closures, // in case their finalizers race ahead. // in case their finalizers race ahead. if (mClosures != null) { // ScriptGroup created using the old Builder class does not // initialize the field mClosures mClosures.clear(); mClosures.clear(); } super.finalize(); super.finalize(); } } } }