summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bindings/mono/efl_mono/efl_all.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bindings/mono/efl_mono/efl_all.cs b/src/bindings/mono/efl_mono/efl_all.cs
index 48a79b5a3a..e1f020746b 100644
--- a/src/bindings/mono/efl_mono/efl_all.cs
+++ b/src/bindings/mono/efl_mono/efl_all.cs
@@ -72,8 +72,12 @@ public static class All
72 { 72 {
73 // Try to cleanup everything before actually shutting down. 73 // Try to cleanup everything before actually shutting down.
74 Eina.Log.Debug("Calling GC before shutdown"); 74 Eina.Log.Debug("Calling GC before shutdown");
75 System.GC.Collect(); 75 for (int i = 0; i < 3; i++)
76 System.GC.WaitForPendingFinalizers(); 76 {
77 System.GC.Collect();
78 System.GC.WaitForPendingFinalizers();
79 Efl.App.AppMain.Iterate();
80 }
77 81
78 Monitor.Enter(InitLock); 82 Monitor.Enter(InitLock);
79 MainLoopInitialized = false; 83 MainLoopInitialized = false;