Skip to content

Commit

Permalink
Merge pull request #733 from prebid/673-memory-leak-detected
Browse files Browse the repository at this point in the history
Fixing Memory Leak
  • Loading branch information
jsligh authored Jan 19, 2024
2 parents 61c6659 + 875aa22 commit 12acc24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public void destroy() {
if (expandedDialog != null) {
expandedDialog.dismiss();
}
webViewBanner = null;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public void destroy() {
// We need to give OMID time to finish method execution inside the webview
handler.removeCallbacksAndMessages(null);
handler.postDelayed(new WebViewCleanupRunnable(currentWebView), WEBVIEW_DESTROY_DELAY_MS);
webView = null;
mraidWebView = null;
}

public void initMraidExpanded() {
Expand Down

0 comments on commit 12acc24

Please sign in to comment.