Skip to content

Commit d360025

Browse files
committed
Fix memory leaking
1 parent bdc1800 commit d360025

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

anychart/src/main/java/com/anychart/AnyChartView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public Parcelable onSaveInstanceState() {
8080
public void onRestoreInstanceState(Parcelable state) {
8181
if (state instanceof Bundle) {
8282
Bundle bundle = (Bundle) state;
83+
this.js.setLength(0);
8384
this.js.append(bundle.getString("js"));
8485
state = bundle.getParcelable("superState");
8586
}

0 commit comments

Comments
 (0)