diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-06 00:27:07 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-06 00:27:07 +0100 |
commit | 319a2fa28a148b6aeee27dd1304f6d99a96998ab (patch) | |
tree | ce54b39adfbb5d36509133877fea60ab33a7ffa4 /app/src | |
parent | 9c45fdb51b639d9c2b638edc70f8af7de6ff90ff (diff) |
fix potential memory leak
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupFailedDialog.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -194,6 +194,12 @@ public class ProviderSetupFailedDialog extends DialogFragment { } @Override + public void onDetach() { + super.onDetach(); + interfaceWithConfigurationWizard = null; + } + + @Override public void onCancel(DialogInterface dialog) { dialog.dismiss(); interfaceWithConfigurationWizard.cancelSettingUpProvider(); |