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 | fd087a279eeed10b29112e7f60c8653b8d546655 (patch) | |
tree | ff26376470619c11baf20e2595bab3bc185c675c | |
parent | 1a849d8a77068fbabb253b45a28ffc130806e879 (diff) | |
download | scintilla-mirror-fd087a279eeed10b29112e7f60c8653b8d546655.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); |