From 2eda8922853aa626a35fb525b11ad5e83e47b880 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 14 Apr 2020 17:53:17 +0200 Subject: [PATCH] Remember to dispose text controllers --- lib/setup/sshkey.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/setup/sshkey.dart b/lib/setup/sshkey.dart index 30f7185f..bf17a01c 100644 --- a/lib/setup/sshkey.dart +++ b/lib/setup/sshkey.dart @@ -229,6 +229,14 @@ class _GitHostUserProvidedKeysState extends State { _privateKeyController = TextEditingController(); } + @override + void dispose() { + _publicKeyController.dispose(); + _privateKeyController.dispose(); + + super.dispose(); + } + @override Widget build(BuildContext context) { return Container(