scintilla: Prevent running signal handlers on a destroyed a11y object
commit0df7d5a03a3f3681294d246d3b3adcf9a9d01485
authorColomban Wendling <ban@herbesfolles.org>
Thu, 2 Feb 2017 13:33:56 +0000 (2 14:33 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Thu, 2 Feb 2017 13:42:38 +0000 (2 14:42 +0100)
treefcfc4995670b25328f1a62c064ed0418fdbd1f85
parent38d59835dbcf44bba73ea86b8511b60ef8c1626e
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.
scintilla/gtk/ScintillaGTKAccessible.cxx