release memory periodically

This commit is contained in:
clowwindy
2014-11-18 21:55:45 +08:00
parent 919f9b5ce3
commit 09ad2ca272
5 changed files with 55 additions and 3 deletions
@@ -299,8 +299,7 @@ namespace Shadowsocks.View
void configForm_FormClosed(object sender, FormClosedEventArgs e)
{
configForm = null;
GC.Collect();
GC.WaitForPendingFinalizers();
Util.Util.ReleaseMemory();
ShowFirstTimeBalloon();
}