do not mention Unref() in the docs where not applicable

This commit is contained in:
RSWilli
2024-06-24 10:58:08 +02:00
parent 0f5ee09329
commit 0f1a6e152f
24 changed files with 46 additions and 88 deletions

View File

@@ -93,7 +93,7 @@ func NewElementMany(elemNames ...string) ([]*Element, error) {
// ElementFactory wraps the GstElementFactory
type ElementFactory struct{ *PluginFeature }
// Find returns the factory for the given plugin, or nil if it doesn't exist. Unref after usage.
// Find returns the factory for the given plugin, or nil if it doesn't exist.
func Find(name string) *ElementFactory {
cName := C.CString(name)
defer C.free(unsafe.Pointer(cName))