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

Commit d976ea9e authored by Yang Ni's avatar Yang Ni Committed by android-build-merger
Browse files

Merge "Fixed ScriptGroup finalizer for old API"

am: 1d0b9e2f

* commit '1d0b9e2f':
  Fixed ScriptGroup finalizer for old API

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