]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix bug with save/open study.
authorrnv <rnv@opencascade.com>
Wed, 26 Nov 2008 07:50:09 +0000 (07:50 +0000)
committerrnv <rnv@opencascade.com>
Wed, 26 Nov 2008 07:50:09 +0000 (07:50 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx

index 95d1de8912a65e45adb7bd8e55853595d881791b..b81519815ba7e6f8348a5c7eee0021a836863016 100644 (file)
@@ -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));