dont let gotk3 set finalizers

This commit is contained in:
tinyzimmer
2020-10-12 07:02:36 +03:00
parent ce95696cc5
commit bcbbb73659
12 changed files with 32 additions and 35 deletions

View File

@@ -144,9 +144,6 @@ func (b *Buffer) Reader() io.Reader { return bytes.NewBuffer(b.Bytes()) }
// Bytes returns a byte slice of the data inside this buffer.
func (b *Buffer) Bytes() []byte {
mapInfo := b.Map(MapRead)
if mapInfo.ptr == nil {
return nil
}
return mapInfo.Bytes()
}