[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / structs / EventHandler.cs
index 5768757e99482b8fff3a783fb89003f992d95702..7a637f04f4347324a9b54599549ffd0a962256a7 100644 (file)
@@ -57,6 +57,7 @@ public class EventHandler : CommonBase {
                bindings.EventHandler_handle_event(this.ptr, _event.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(_event);
+               if (this != null) { this.ptrs_to.AddLast(_event); };
        }
 
 }