fixed potential memory leak

This commit is contained in:
Song Minjae
2017-03-23 15:20:59 +09:00
parent d3e58b823d
commit f8da7923aa
3 changed files with 2 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ class GameFontImpl : GameFontBase() {
}
fun reload() {
GameFontBase.cyrilic.destroy()
GameFontBase.cyrilic = SpriteSheet(
when (GameFontDemo.gameLocale.substring(0..1)) {
"bg" -> "./assets/graphics/fonts/cyrilic_bulgarian_variable.tga"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 180 KiB

View File

@@ -73,6 +73,7 @@ class GameFontImpl : GameFontBase() {
}
fun reload() {
GameFontBase.cyrilic.destroy()
GameFontBase.cyrilic = SpriteSheet(
when (GameFontDemo.gameLocale.substring(0..1)) {
"bg" -> "./assets/graphics/fonts/cyrilic_bulgarian_variable.tga"