Changeset 8642 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 07/18/07 20:30:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r8133 r8642 101 101 //fTrees.SetOwner(); 102 102 103 gROOT->GetListOfCleanups()->Add(this); // To remove fDisplay 104 SetBit(kMustCleanup); 103 gROOT->GetListOfCleanups()->Add(this); // To remove fOut if deleted 105 104 } 106 105 … … 133 132 134 133 file->SetOption(option); // IMPORTANT! 134 file->SetBit(kMustCleanup); 135 135 ResetBit(kIsNotOwner); 136 136 return file; … … 227 227 { 228 228 fOut = new TFile("/dev/null", "READ", ftitle, comp); 229 fOut->SetBit(kMustCleanup); 229 230 return; 230 231 } … … 1071 1072 } 1072 1073 1074 // -------------------------------------------------------------------------- 1075 // 1076 // If the output file is deleted set fOut to NULL. 1077 // Call MTask::RecursiveRemove 1078 // 1073 1079 void MWriteRootFile::RecursiveRemove(TObject *obj) 1074 1080 { 1075 1081 if (obj==fOut) 1076 fOut=0; 1082 fOut=NULL; 1083 1084 MWriteFile::RecursiveRemove(obj); 1077 1085 } 1078 1086
Note:
See TracChangeset
for help on using the changeset viewer.