mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-03 15:16:27 +08:00
Merge pull request #46 from go-gst/element_factory_with_properties_memleak
fix glib transfer for elements created with NewElementWithProperties
This commit is contained in:
@@ -72,7 +72,7 @@ func NewElementWithProperties(factory string, properties map[string]interface{})
|
|||||||
if elem == nil {
|
if elem == nil {
|
||||||
return nil, fmt.Errorf("could not create element: %s", factory)
|
return nil, fmt.Errorf("could not create element: %s", factory)
|
||||||
}
|
}
|
||||||
return wrapElement(glib.TransferFull(unsafe.Pointer(elem))), nil
|
return wrapElement(glib.TransferNone(unsafe.Pointer(elem))), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewElementMany is a convenience wrapper around building many GstElements in a
|
// NewElementMany is a convenience wrapper around building many GstElements in a
|
||||||
|
Reference in New Issue
Block a user