• Colomban Wendling's avatar
    scintilla: Fix crash after destroying the widget on GTK < 3.3.6 · 1421a3f9
    Colomban Wendling yazdı
    On GTK2 and GTK3 < 3.3.6 there is no GtkAccessibleClass::widget_unset()
    method, so we can't destroy our accessible object right away.  So, to
    avoid accessing a destroyed widget, we need to check whether the widget
    still exists in the the ScintillaGTKAccessible destructor.
    
    In other methods it's not necessary because the wrapping GObject class
    makes sure not to forward other when the widget has been destroyed, but
    we still have to destroy the C++ instance no matter what, so the check
    has to be on this side.
    
    Fixes #1410.
    1421a3f9
ScintillaGTKAccessible.cxx 44.1 KB