diff options
author | Colomban Wendling <ban@herbesfolles.org> | 2015-07-05 01:38:22 +0200 |
---|---|---|
committer | Colomban Wendling <ban@herbesfolles.org> | 2015-07-05 01:38:22 +0200 |
commit | 6de51bc1bc49a4f7c131681da7a79c35cfde1e1a (patch) | |
tree | b68d7b9d4a9824082770c59c0447ac1e663c3bf4 | |
parent | 9eea6db7db37de803129faaa79bfae3bbed9a143 (diff) | |
download | scintilla-mirror-6de51bc1bc49a4f7c131681da7a79c35cfde1e1a.tar.gz |
GTK: Fix leaking scrollbars
-rw-r--r-- | gtk/ScintillaGTK.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 294ba975f..f0863672b 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2658,6 +2658,9 @@ void ScintillaGTK::Destroy(GObject *object) { //Platform::DebugPrintf("Destroying %x %x\n", sciThis, object); sciThis->Finalise(); + gtk_widget_unparent(PWidget(sciThis->scrollbarv)); + gtk_widget_unparent(PWidget(sciThis->scrollbarh)); + delete sciThis; scio->pscin = 0; scintilla_class_parent_class->finalize(object); |