Trying to prevent memory leaks.

This commit is contained in:
Rossen Hristov
2016-05-20 17:48:34 +03:00
parent a7f76f7256
commit 7340a6e2fc
2 changed files with 25 additions and 0 deletions

View File

@@ -696,7 +696,13 @@ class FragmentClass extends android.app.Fragment {
trace.write(`${this}.onDestroy()`, trace.categories.NativeLifecycle);
}
super.onDestroy();
this.entry.fragmentTag = undefined;
this.entry = undefined;
this.frame = undefined;
this.clearHistory = undefined;
transitionModule._clearBackwardTransitions(this);
transitionModule._clearForwardTransitions(this);
}
public toString(): string {