summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2019-03-03 22:15:26 +0100
committerChristian Persch <chpe@src.gnome.org>2019-03-03 22:15:26 +0100
commit3ab488b30283bca9f797965a9ff1ace8f56b0d32 (patch)
tree4be11e7a5f96f5d674cdee266324147d8db02253
parent16669671641438f35514082048449231b43c55bb (diff)
downloadvte-3ab488b30283bca9f797965a9ff1ace8f56b0d32.tar.gz
widget: Prevent clipboard callbacks during destruction
https://gitlab.gnome.org/GNOME/vte/issues/89
-rw-r--r--src/vte.cc3
1 files changed, 3 insertions, 0 deletions
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;