[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A Pango attribute deallocated twice
From: |
Mark H Weaver |
Subject: |
Re: A Pango attribute deallocated twice |
Date: |
Fri, 08 Jun 2018 21:05:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hi,
Tommi Höynälänmaa <address@hidden> writes:
> The reason of the bug is that the attribute argument to
> pango_attr_list_insert has been declared caller owned. I changed
> g-wrap so that WCT arguments can be callee owned and I modified
> guile-gnome2 so that the second argument of pango_attr_list_insert is
> declared callee-owned. Now it works.
Thank you for your investigation, this is very helpful.
Certainly the attribute argument to 'pango_attr_list_insert' should not
be caller-owned. However, I'm not sure that callee-owned is quite right
either, and I'm surprised that g-wrap would need to be modified to fix
this.
The Pango documentation says: "Ownership of [the attribute argument] is
assumed by the list", i.e. the first argument. Is there a way to
arrange that?
I haven't worked with g-wrap or guile-gnome, so this is not my area of
expertise.
Thanks,
Mark