Skip to content

Commit 5a5226b

Browse files
committed
Move call to Core._destroy() to appropriate place.
1 parent 0b190db commit 5a5226b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/xrEngine/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ ENGINE_API int RunApplication()
281281

282282
Engine.External.Initialize();
283283
Startup();
284-
Core._destroy();
285284
// check for need to execute something external
286285
if (/*xr_strlen(g_sLaunchOnExit_params) && */ xr_strlen(g_sLaunchOnExit_app))
287286
{

src/xr_3da/entry_point.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ int entry_point(pcstr commandLine)
3535
}
3636
Core.Initialize("OpenXRay", nullptr, true, *fsgame ? fsgame : nullptr);
3737

38-
return RunApplication();
38+
auto result = RunApplication();
39+
40+
Core._destroy();
41+
42+
return result;
3943
}
4044

4145
int StackoverflowFilter(const int exceptionCode)

0 commit comments

Comments
 (0)