From f8568ff821ff74522a51c4705307c27022346a09 Mon Sep 17 00:00:00 2001 From: Dadoum <24679280+Dadoum@users.noreply.github.com> Date: Mon, 18 May 2020 19:48:11 +0200 Subject: [PATCH] Fix Container.ForAll A SIGSEGV occurs without this change (Invalid pointer: 0x00 fix) --- Source/Libs/GtkSharp/Container.Forall.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Libs/GtkSharp/Container.Forall.cs b/Source/Libs/GtkSharp/Container.Forall.cs index ba3fabe47..788a0dd5f 100644 --- a/Source/Libs/GtkSharp/Container.Forall.cs +++ b/Source/Libs/GtkSharp/Container.Forall.cs @@ -100,7 +100,7 @@ namespace Gtk $"{nameof(ForAll)} can only be called as \"base.{nameof(ForAll)}()\". Use {nameof(Forall)}() or {nameof(Foreach)}()."); } - gtksharp_container_base_forall(Handle, include_internals, callback, IntPtr.Zero); + gtksharp_container_base_forall(Handle, include_internals, callback, ((ForAllCallbackHandler) callback.Target).data); } static ForAllNativeDelegate InternalForAllNativeDelegate(GLib.GType gtype) @@ -153,4 +153,4 @@ namespace Gtk } } } -} \ No newline at end of file +}