From 319a2fa28a148b6aeee27dd1304f6d99a96998ab Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 6 Nov 2021 00:27:07 +0100 Subject: fix potential memory leak --- .../leap/bitmaskclient/providersetup/ProviderSetupFailedDialog.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/src/main') diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupFailedDialog.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupFailedDialog.java index 50c063b2..a9247807 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupFailedDialog.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupFailedDialog.java @@ -193,6 +193,12 @@ public class ProviderSetupFailedDialog extends DialogFragment { } } + @Override + public void onDetach() { + super.onDetach(); + interfaceWithConfigurationWizard = null; + } + @Override public void onCancel(DialogInterface dialog) { dialog.dismiss(); -- cgit v1.2.3