mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-09 01:12:29 +02:00
Update main.d
* Make sure we return any used memory back to the OS on exit
This commit is contained in:
parent
e3b2ec4ae1
commit
f941db0349
|
@ -1417,8 +1417,10 @@ void performSynchronisedExitProcess(string scopeCaller = null) {
|
|||
// Finalise all logging and destroy log buffer
|
||||
shutdownApplicationLogging();
|
||||
|
||||
// Memory Garbage Collection
|
||||
// Perform Garbage Cleanup
|
||||
GC.collect();
|
||||
// Return free memory to the OS
|
||||
GC.minimize();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue