Browse Source

Fixed memory leak in IncognitoActivity

master
Anthony Restaino 9 years ago
parent
commit
cb19ce2d0a
  1. 2
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java
  2. 3
      app/src/main/java/acr/browser/lightning/activity/IncognitoActivity.java

2
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -1099,7 +1099,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
return true; return true;
} }
private void closeBrowser() { public void closeBrowser() {
mBrowserFrame.setBackgroundColor(mBackgroundColor); mBrowserFrame.setBackgroundColor(mBackgroundColor);
performExitCleanUp(); performExitCleanUp();
mTabsManager.shutdown(); mTabsManager.shutdown();

3
app/src/main/java/acr/browser/lightning/activity/IncognitoActivity.java

@ -58,7 +58,6 @@ public class IncognitoActivity extends BrowserActivity {
@Override @Override
public void closeActivity() { public void closeActivity() {
closeDrawers(); closeDrawers();
performExitCleanUp(); closeBrowser();
finish();
} }
} }

Loading…
Cancel
Save