You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a bunch of cases where we assign the result of g_variant_builder_end to a GVariantautoptr which will unref the floating variant in an early exit which is an error because the reference returned is floating:
g_autoptr(GVariant) options=NULL;
...
options=g_variant_builder_end (&options_builder);
if (...)
return;
Steps to Reproduce
.
Anything else we should know?
No response
The text was updated successfully, but these errors were encountered:
Operating System
XDG Desktop Portal version
1.18
XDG Desktop Portal version (Other)
No response
Desktop Environment
Other
Desktop Environment (Other)
No response
Expected Behavior
Correct use of
g_autoptr
and floating refsCurrent Behavior
We have a bunch of cases where we assign the result of
g_variant_builder_end
to aGVariant
autoptr
which will unref the floating variant in an early exit which is an error because the reference returned is floating:Steps to Reproduce
.
Anything else we should know?
No response
The text was updated successfully, but these errors were encountered: