mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-14 01:24:05 +09:00
fixed potential memory leak
This commit is contained in:
@@ -73,6 +73,7 @@ class GameFontImpl : GameFontBase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun reload() {
|
fun reload() {
|
||||||
|
GameFontBase.cyrilic.destroy()
|
||||||
GameFontBase.cyrilic = SpriteSheet(
|
GameFontBase.cyrilic = SpriteSheet(
|
||||||
when (GameFontDemo.gameLocale.substring(0..1)) {
|
when (GameFontDemo.gameLocale.substring(0..1)) {
|
||||||
"bg" -> "./assets/graphics/fonts/cyrilic_bulgarian_variable.tga"
|
"bg" -> "./assets/graphics/fonts/cyrilic_bulgarian_variable.tga"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 180 KiB After Width: | Height: | Size: 180 KiB |
@@ -73,6 +73,7 @@ class GameFontImpl : GameFontBase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun reload() {
|
fun reload() {
|
||||||
|
GameFontBase.cyrilic.destroy()
|
||||||
GameFontBase.cyrilic = SpriteSheet(
|
GameFontBase.cyrilic = SpriteSheet(
|
||||||
when (GameFontDemo.gameLocale.substring(0..1)) {
|
when (GameFontDemo.gameLocale.substring(0..1)) {
|
||||||
"bg" -> "./assets/graphics/fonts/cyrilic_bulgarian_variable.tga"
|
"bg" -> "./assets/graphics/fonts/cyrilic_bulgarian_variable.tga"
|
||||||
|
|||||||
Reference in New Issue
Block a user