Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Ensure GeckoSession is not null in cleanResources
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin committed May 20, 2020
1 parent 5884370 commit 54b1018
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ public CompletableFuture<Void> captureBackgroundBitmap(int displayWidth, int dis

Runnable cleanResources = () -> {
display.surfaceDestroyed();
mState.mSession.releaseDisplay(display);
if (mState.mSession != null) {
mState.mSession.releaseDisplay(display);
}
BitmapCache.getInstance(mContext).releaseCaptureSurface();
};

Expand Down

0 comments on commit 54b1018

Please sign in to comment.