Merge pull request #139 from TheBlueMatt/main
[ldk-java] / c_sharp / src / org / ldk / structs / Result_COption_EventZDecodeErrorZ.cs
index 16982439935c478741939cc63de08adfadc692c6..02d7c7f9e201c108f1a5c1c56139dad6365a861d 100644 (file)
@@ -46,6 +46,7 @@ public class Result_COption_EventZDecodeErrorZ : CommonBase {
                GC.KeepAlive(o);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_COption_EventZDecodeErrorZ ret_hu_conv = Result_COption_EventZDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(o); };
                return ret_hu_conv;
        }
 
@@ -57,6 +58,7 @@ public class Result_COption_EventZDecodeErrorZ : CommonBase {
                GC.KeepAlive(e);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_COption_EventZDecodeErrorZ ret_hu_conv = Result_COption_EventZDecodeErrorZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(e); };
                return ret_hu_conv;
        }