Skip to content

Commit c343424

Browse files
Zegerieagleivg
authored andcommitted
Manage gStringTable creation/destruction in Linux
1 parent cd62f9c commit c343424

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/xrGame/xrGame.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,14 @@ static void load(int argc, char** argv, char** envp)
7878
// XXX nitrocaster PROFILER: temporarily disabled due to linkage issues
7979
// g_profiler = new CProfiler();
8080
#endif
81+
gStringTable = new CStringTable();
82+
StringTable().Init();
8183
}
8284

8385
__attribute__((destructor))
8486
static void unload()
8587
{
8688
CleanupUIStyleToken();
89+
xr_delete(gStringTable);
8790
}
8891
#endif

0 commit comments

Comments
 (0)