Kaydet (Commit) 0df7d5a0 authored tarafından Colomban Wendling's avatar Colomban Wendling

scintilla: Prevent running signal handlers on a destroyed a11y object

Avoid crash when detaching the widget from the accessible object
without destroying that widget.

In such situations, the widget is still valid but we will have
destroyed the orphaned accessible object.  Thus, we must make sure we
disconnected the signal handlers the late accessible had set up on the
widget, as they won't be implicitly disconnected by widget
finalization in this case.

Fixes #1385.
üst 38d59835
......@@ -162,6 +162,7 @@ ScintillaGTKAccessible::ScintillaGTKAccessible(GtkAccessible *accessible_, GtkWi
}
ScintillaGTKAccessible::~ScintillaGTKAccessible() {
g_signal_handlers_disconnect_by_func (sci->sci, reinterpret_cast<gpointer>(SciNotify), this);
}
gchar *ScintillaGTKAccessible::GetTextRangeUTF8(Position startByte, Position endByte) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment