utils: Variants: Handle acquire/release only in the case of an embeded variant
Wrapped variants are to be released by the caller, which allocated the variant. This is probably fixing memory leaks, as the return values wrapped with a variant seemed unlikely to be released, as there refcount was always increased in the variant constructor.
Loading
Please register or sign in to comment