mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-13 03:33:56 +08:00
dont let gotk3 set finalizers
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user