vitorsousa pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d83d89e882cfee31ba5ee5e9a8219e3b7e1c0efe

commit d83d89e882cfee31ba5ee5e9a8219e3b7e1c0efe
Author: Lauro Moura <[email protected]>
Date:   Mon May 20 20:23:53 2019 -0300

    csharp: Do some iterations on exit.
    
    So we can kinda properly clean up things before shutting down.
---
 src/bindings/mono/efl_mono/efl_all.cs | 8 ++++++--
 1 file 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
     {
         // Try to cleanup everything before actually shutting down.
         Eina.Log.Debug("Calling GC before shutdown");
-        System.GC.Collect();
-        System.GC.WaitForPendingFinalizers();
+        for (int i = 0; i < 3; i++)
+        {
+            System.GC.Collect();
+            System.GC.WaitForPendingFinalizers();
+            Efl.App.AppMain.Iterate();
+        }
 
         Monitor.Enter(InitLock);
         MainLoopInitialized = false;

-- 


Reply via email to