From 1da301156f85a3e36a26bf4babd1db674d0b971c Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 26 Nov 2008 07:50:09 +0000 Subject: [PATCH] Fix bug with save/open study. --- src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx index 95d1de891..b81519815 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx @@ -1306,6 +1306,9 @@ void ReadNoteBookVariables(SALOMEDSImpl_Study* theStudy, HDFgroup* theGroup) new_dataset->ReadFromDisk(currentVarValue); new_dataset->CloseOnDisk(); new_dataset = 0; //will be deleted by hdf_sco_group destructor + + new_group->CloseOnDisk(); + new_group = 0; //will be deleted by hdf_sco_group destructor SALOMEDSImpl_GenericVariable::VariableTypes aVarType = SALOMEDSImpl_GenericVariable::String2VariableType(string(currentVarType)); -- 2.39.2