Ignore:
Timestamp:
07/18/07 20:30:13 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc

    r8133 r8642  
    101101    //fTrees.SetOwner();
    102102
    103     gROOT->GetListOfCleanups()->Add(this); // To remove fDisplay
    104     SetBit(kMustCleanup);
     103    gROOT->GetListOfCleanups()->Add(this); // To remove fOut if deleted
    105104}
    106105
     
    133132
    134133        file->SetOption(option); // IMPORTANT!
     134        file->SetBit(kMustCleanup);
    135135        ResetBit(kIsNotOwner);
    136136        return file;
     
    227227    {
    228228        fOut = new TFile("/dev/null", "READ", ftitle, comp);
     229        fOut->SetBit(kMustCleanup);
    229230        return;
    230231    }
     
    10711072}
    10721073
     1074// --------------------------------------------------------------------------
     1075//
     1076// If the output file is deleted set fOut to NULL.
     1077// Call MTask::RecursiveRemove
     1078//
    10731079void MWriteRootFile::RecursiveRemove(TObject *obj)
    10741080{
    10751081    if (obj==fOut)
    1076         fOut=0;
     1082        fOut=NULL;
     1083
     1084    MWriteFile::RecursiveRemove(obj);
    10771085}
    10781086
Note: See TracChangeset for help on using the changeset viewer.