aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-12-03 14:20:16 +1100
committernyamatongwe <devnull@localhost>2010-12-03 14:20:16 +1100
commitce8b7a56309b1eb98035dffd929b999a25493735 (patch)
tree3d82f46b1871fb1c5ef4bb01fc9a6db2a0389261
parente6e888d750f8b215a106f556c5cd054e8b45ffa4 (diff)
downloadscintilla-mirror-ce8b7a56309b1eb98035dffd929b999a25493735.tar.gz
Remove styling idle in destructor to avoid crashing when idle called
after ScintillaGTK instance destroyed.
-rw-r--r--gtk/ScintillaGTK.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index f3be0b457..99f220d6c 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -367,6 +367,7 @@ ScintillaGTK::ScintillaGTK(_ScintillaObject *sci_) :
}
ScintillaGTK::~ScintillaGTK() {
+ g_idle_remove_by_data(this);
}
void ScintillaGTK::RealizeThis(GtkWidget *widget) {