Unverified Commit fe16c206 authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

Dispose KeepAliveHandle. (#108227)

parent e05ae3ca
...@@ -353,7 +353,9 @@ mixin AutomaticKeepAliveClientMixin<T extends StatefulWidget> on State<T> { ...@@ -353,7 +353,9 @@ mixin AutomaticKeepAliveClientMixin<T extends StatefulWidget> on State<T> {
} }
void _releaseKeepAlive() { void _releaseKeepAlive() {
// Dispose and release do not imply each other.
_keepAliveHandle!.release(); _keepAliveHandle!.release();
_keepAliveHandle!.dispose();
_keepAliveHandle = null; _keepAliveHandle = null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment