From a478bbd999a3c63bdfdc210b9bc3afb6e75d68da Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 29 Aug 2006 11:47:38 +0000 Subject: [PATCH] Objects of class SUIT_DataObject deleted by method deleteLater() instead operator delete(). --- src/LightApp/LightApp_DataModel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_DataModel.cxx b/src/LightApp/LightApp_DataModel.cxx index 9fe3b086a..6c113382a 100644 --- a/src/LightApp/LightApp_DataModel.cxx +++ b/src/LightApp/LightApp_DataModel.cxx @@ -119,7 +119,7 @@ void LightApp_DataModel::update( LightApp_DataObject*, LightApp_Study* ) build(); updateWidgets(); for( DataObjectListIterator it( ch ); it.current(); ++it ) - delete it.current(); + it.current()->deleteLater(); } /*! -- 2.39.2