summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eina_mono/eina_binbuf.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-04-15 14:09:49 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-04-15 15:24:29 -0300
commitd775b58a630d6d0fd2ac2176df91bc1142a5276f (patch)
tree38895770f372109df25e6ea64036f1a9cfbd2daf /src/bindings/mono/eina_mono/eina_binbuf.cs
parent7a552024995861e44c301ea8bd7751895e4f8ceb (diff)
csharp: Fix free_cb calling under dotnet.
Summary: dotnet's GC seems to be more agressive, showing some issues that usually do not appear when running under Mono's. This commit uses for free_cb's the same scheme we already use for regular Eo refs, using a GC handle to keep the cleaning callback alive. Reviewers: vitor.sousa, felipealmeida, woohyun Reviewed By: vitor.sousa Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8593
Diffstat (limited to 'src/bindings/mono/eina_mono/eina_binbuf.cs')
-rw-r--r--src/bindings/mono/eina_mono/eina_binbuf.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/mono/eina_mono/eina_binbuf.cs b/src/bindings/mono/eina_mono/eina_binbuf.cs
index 2ae04ec..e5dc817 100644
--- a/src/bindings/mono/eina_mono/eina_binbuf.cs
+++ b/src/bindings/mono/eina_mono/eina_binbuf.cs
@@ -109,7 +109,7 @@ public class Binbuf : IDisposable
109 } 109 }
110 else 110 else
111 { 111 {
112 Efl.Eo.Globals.efl_mono_thread_safe_free_cb_exec(eina_binbuf_free, Handle); 112 Efl.Eo.Globals.ThreadSafeFreeCbExec(eina_binbuf_free, Handle);
113 } 113 }
114 } 114 }
115 } 115 }