[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / structs / LightningError.cs
index 4f5cc2260c5fa194fa8fc6d39076521547d9cabd..da6206ed26fc5aabeb5e02124e71cb0f7a30d2db 100644 (file)
@@ -52,6 +52,7 @@ public class LightningError : CommonBase {
                bindings.LightningError_set_action(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
+               if (this != null) { this.ptrs_to.AddLast(val); };
        }
 
        /**
@@ -64,6 +65,7 @@ public class LightningError : CommonBase {
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.LightningError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.LightningError(null, ret); }
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(action_arg); };
                return ret_hu_conv;
        }