[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shr using `make-xwidget' incorrectly

From: Po Lu
Subject: Re: shr using `make-xwidget' incorrectly
Date: Thu, 11 Nov 2021 17:27:25 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> We are releasing the GTK resources when such a buffer is killed.  This
>> is the problem here: code that uses `CHECK_XWIDGET' won't catch the case
>> where the GTK resources are released, but there are still references to
>> the xwidget, which causes use-after-frees when trying to redisplay the
>> xwidget, or when calling, say, `xwidget-webkit-goto-uri' on the xwidget.

> Isn't there some indication in the xwidget that its GTK resources were
> freed?  If not, can we add such an indication and set it when we free
> those resources?

There isn't, but I added one in the patch I sent Lars.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]