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
+2 -1
View File
@@ -12,13 +12,13 @@ namespace Shadowsocks
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Util.Util.ReleaseMemory();
using (Mutex mutex = new Mutex(false, "Global\\" + "71981632-A427-497F-AB91-241CD227EC1F"))
{
Application.EnableVisualStyles();
@@ -41,6 +41,7 @@ namespace Shadowsocks
ShadowsocksController controller = new ShadowsocksController();
MenuViewController viewController = new MenuViewController(controller);
Util.Util.ReleaseMemory();
Application.Run();
}
}