Skip to content

Commit

Permalink
Manage gStringTable creation/destruction in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri authored and eagleivg committed Nov 6, 2018
1 parent cd62f9c commit c343424
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xrGame/xrGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ static void load(int argc, char** argv, char** envp)
// XXX nitrocaster PROFILER: temporarily disabled due to linkage issues
// g_profiler = new CProfiler();
#endif
gStringTable = new CStringTable();
StringTable().Init();
}

__attribute__((destructor))
static void unload()
{
CleanupUIStyleToken();
xr_delete(gStringTable);
}
#endif

0 comments on commit c343424

Please sign in to comment.