mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-03 23:19:22 +02:00
Merge branch 'vcmi/master' into 'vcmi/develop'
This commit is contained in:
@@ -435,6 +435,8 @@ static void mainLoop()
|
||||
|
||||
[[noreturn]] static void quitApplication()
|
||||
{
|
||||
CSH->endNetwork();
|
||||
|
||||
if(!settings["session"]["headless"].Bool())
|
||||
{
|
||||
if(CSH->client)
|
||||
@@ -443,6 +445,8 @@ static void mainLoop()
|
||||
GH.windows().clear();
|
||||
}
|
||||
|
||||
vstd::clear_pointer(CSH);
|
||||
|
||||
CMM.reset();
|
||||
|
||||
if(!settings["session"]["headless"].Bool())
|
||||
@@ -463,7 +467,6 @@ static void mainLoop()
|
||||
vstd::clear_pointer(graphics);
|
||||
}
|
||||
|
||||
vstd::clear_pointer(CSH);
|
||||
vstd::clear_pointer(VLC);
|
||||
|
||||
// sometimes leads to a hang. TODO: investigate
|
||||
|
||||
Reference in New Issue
Block a user