On Wed, 26 Nov 2025 at 12:01, Daniel P. Berrangé <[email protected]> wrote:
> The other thing that plays in here is that we actively encourage use of
> g_autoptr everywhere. It is very unusual for "Error" to be a type that
> does NOT want g_autoptr, and thus the mistake is very much on the cards.
>
> I've proposed it before myself & Markus caught it. I also caught one
> other proposals to add it since my attempt. This third time it slipped
> through review. I expect we'll see a 4th attempt to add it at some point.

We could add a comment to the header explaining the rationale for
not providing a g_autoptr handler, so that at least we have it
written down, and are more likely to remember it when it comes
up again in future...

-- PMM

Reply via email to