func newInputStream(reader io.Reader) *inputStream { s := &inputStream{reader: reader} // Foll GC s.bindPtr(C.wxInputStream_New(C.GoReaderPtr(&reader)), func(p unsafe.Pointer) { C.wxInputStream_Delete(p) }) return s }
func (s *inputStream) Release() { C.wxInputStream_Delete(s.p) s.p = nil }