aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColomban Wendling <ban@herbesfolles.org>2015-07-05 01:38:22 +0200
committerColomban Wendling <ban@herbesfolles.org>2015-07-05 01:38:22 +0200
commit6de51bc1bc49a4f7c131681da7a79c35cfde1e1a (patch)
treeb68d7b9d4a9824082770c59c0447ac1e663c3bf4
parent9eea6db7db37de803129faaa79bfae3bbed9a143 (diff)
downloadscintilla-mirror-6de51bc1bc49a4f7c131681da7a79c35cfde1e1a.tar.gz
GTK: Fix leaking scrollbars
-rw-r--r--gtk/ScintillaGTK.cxx3
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);