Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
fix: Add try catch for resetImages to avoid OOM.
Browse files Browse the repository at this point in the history
  • Loading branch information
errnull committed Sep 6, 2019
1 parent 2f0d651 commit ef1f232
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class SVGAVideoEntity {
FPS = it.optInt("fps", 20)
frames = it.optInt("frames", 0)
}
resetImages(obj)
try {
resetImages(obj)
} catch (e: Exception) {
e.printStackTrace()
}
resetSprites(obj)
}

Expand Down

0 comments on commit ef1f232

Please sign in to comment.