Skip to content

Commit

Permalink
Merge pull request #5136 from dweymouth/fix-fontmetrics-leak
Browse files Browse the repository at this point in the history
Fix memory leak in font metrics cache on desktop
  • Loading branch information
dweymouth authored Sep 12, 2024
2 parents 7d81356 + 8e5e311 commit 46bbc89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/cache/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func CleanCanvases(refreshingCanvases []fyne.Canvas) {
}

destroyExpiredSvgs(now)
destroyExpiredFontMetrics(now)

deletingObjs := make([]fyne.CanvasObject, 0, 50)

Expand Down

0 comments on commit 46bbc89

Please sign in to comment.