[vte] widget: Prevent clipboard callbacks during destruction



commit 3ab488b30283bca9f797965a9ff1ace8f56b0d32
Author: Christian Persch <chpe src gnome org>
Date:   Sun Mar 3 22:15:26 2019 +0100

    widget: Prevent clipboard callbacks during destruction
    
    https://gitlab.gnome.org/GNOME/vte/issues/89

 src/vte.cc | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/vte.cc b/src/vte.cc
index fba8cb73..af01264e 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -8075,6 +8075,9 @@ Terminal::set_blink_settings(bool blink,
 
 Terminal::~Terminal()
 {
+        /* Make sure not to change selection while in destruction. See issue vte#89. */
+        m_changing_selection = true;
+
        struct vte_match_regex *regex;
        int sel;
        guint i;


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