From 811bc9b8278ec4eb05de5b56f0b23ad67113a491 Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot <Bertrand.Bellenot@cern.ch> Date: Tue, 27 Sep 2011 10:31:00 +0000 Subject: [PATCH] Fix bug #87176: ROOT crash using Quit from TCanvas (https://savannah.cern.ch/bugs/?87176) git-svn-id: http://root.cern.ch/svn/root/trunk@41021 27541ba8-7e3a-0410-8455-c3a389f83636 --- gui/gui/src/TRootCanvas.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/gui/src/TRootCanvas.cxx b/gui/gui/src/TRootCanvas.cxx index 526ad83a2a9..e624554cb5b 100644 --- a/gui/gui/src/TRootCanvas.cxx +++ b/gui/gui/src/TRootCanvas.cxx @@ -894,7 +894,7 @@ again: if (!gApplication->ReturnFromRun()) { if ((TVirtualPadEditor::GetPadEditor(kFALSE) != 0)) TVirtualPadEditor::Terminate(); - delete this; + SendCloseMessage(); } if (TVirtualPadEditor::GetPadEditor(kFALSE) != 0) TVirtualPadEditor::Terminate(); -- GitLab