Skip to content

Commit 18dd97c

Browse files
committed
3DS: Free font on exit
1 parent a27a2c2 commit 18dd97c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/3ds/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ int main(int argc, char* argv[]) {
10931093
useRomfs = mGUIGetRom(&runner, initialPath, sizeof(initialPath));
10941094
if (!useRomfs) {
10951095
romfsExit();
1096+
GUIFontDestroy(font);
10961097
_cleanup();
10971098
return 1;
10981099
}
@@ -1110,6 +1111,7 @@ int main(int argc, char* argv[]) {
11101111
if (useRomfs) {
11111112
romfsExit();
11121113
}
1114+
GUIFontDestroy(font);
11131115
_cleanup();
11141116
return 0;
11151117
}

0 commit comments

Comments
 (0)