Skip to content

Commit

Permalink
[add] #98 비트맵 null 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
Jokwanhee committed Feb 23, 2024
1 parent ade9e4e commit 615f6a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ class MotivooOtherPieChart @JvmOverloads constructor(

override fun onDetachedFromWindow() {
super.onDetachedFromWindow()
otherImageBitmap?.recycle()
otherImageBitmap = null
scope.cancel()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class MotivooPieChart @JvmOverloads constructor(

override fun onDetachedFromWindow() {
super.onDetachedFromWindow()
myImageBitmap?.recycle()
myImageBitmap = null
scope.cancel()
}

Expand Down

0 comments on commit 615f6a4

Please sign in to comment.