public void free() { if (peer != 0) { CMalloc.free(peer); peer = 0; } }
public void Collect() { if (IsVerbose) { global::System.Console.WriteLine("memc: " + Size + " bytes"); } while (list.size() > 0) { CMalloc m = (CMalloc)list.get(0); m.free(); list.remove(0); } if (IsVerbose) { global::System.Console.WriteLine("memc: " + Size + " bytes"); } }