From: rnv Date: Wed, 26 Nov 2008 07:50:09 +0000 (+0000) Subject: Fix bug with save/open study. X-Git-Tag: TG_DumpPython_Extension_3~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1da301156f85a3e36a26bf4babd1db674d0b971c;p=modules%2Fkernel.git Fix bug with save/open study. --- 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));