From 966fa824ed99c06516f5a50708b2fed7a7246c26 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Thu, 3 Oct 2019 12:24:09 +0800 Subject: [PATCH] fix: dispose --- lib/models/auth.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/models/auth.dart b/lib/models/auth.dart index d419e7f..7f41d57 100644 --- a/lib/models/auth.dart +++ b/lib/models/auth.dart @@ -153,6 +153,12 @@ class AuthModel with ChangeNotifier { notifyListeners(); } + @override + void dispose() { + _sub.cancel(); + super.dispose(); + } + void setActiveAccountIndex(int index) { activeAccountIndex = index; notifyListeners();