Skip to content

Commit

Permalink
Merge pull request #46 from go-gst/element_factory_with_properties_me…
Browse files Browse the repository at this point in the history
…mleak

fix glib transfer for elements created with NewElementWithProperties
  • Loading branch information
RSWilli committed Sep 27, 2023
2 parents 34a77d9 + 94e32cd commit ab1fffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gst/gst_element_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func NewElementWithProperties(factory string, properties map[string]interface{})
if elem == nil {
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
Expand Down

0 comments on commit ab1fffc

Please sign in to comment.