X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FPing.ts;fp=ts%2Fstructs%2FPing.ts;h=2cc1a913f6ea09dec8fd5849b68a3e35dc76f55c;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=d915f29e4612c8e74f47817fa7598902b3b7706d;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/Ping.ts b/ts/structs/Ping.ts index d915f29e..2cc1a913 100644 --- a/ts/structs/Ping.ts +++ b/ts/structs/Ping.ts @@ -21,6 +21,7 @@ import * as bindings from '../bindings' // TODO: figure out location public Ping clone() { number ret = bindings.Ping_clone(this.ptr); const ret_hu_conv: Ping = new Ping(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -45,6 +46,7 @@ import * as bindings from '../bindings' // TODO: figure out location public static Ping constructor_new(number ponglen_arg, number byteslen_arg) { number ret = bindings.Ping_new(ponglen_arg, byteslen_arg); const ret_hu_conv: Ping = new Ping(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }