Backport Scintilla HG fix: Remove styling idle in destructor to

avoid crashing when idle called after ScintillaGTK instance
destroyed (fixes #3111058).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5460 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-12-03 13:28:13 +00:00
parent 31a4d066b3
commit f201500ed5
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2010-12-03 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* scintilla/gtk/ScintillaGTK.cxx:
Backport Scintilla HG fix: Remove styling idle in destructor to
avoid crashing when idle called after ScintillaGTK instance
destroyed (fixes #3111058).
2010-11-29 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/notebook.c:

View File

@ -363,6 +363,7 @@ ScintillaGTK::ScintillaGTK(_ScintillaObject *sci_) :
}
ScintillaGTK::~ScintillaGTK() {
g_idle_remove_by_data(this);
}
void ScintillaGTK::RealizeThis(GtkWidget *widget) {