Changeset 19334 for trunk/Mars
- Timestamp:
- 10/30/18 15:53:57 (6 years ago)
- Location:
- trunk/Mars/mdata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mdata/MDataPhrase.cc
r19258 r19334 425 425 } 426 426 427 void MDataPhrase::RecursiveRemove(TObject *obj) 428 { 429 if (fFormula==obj) 430 fFormula = NULL; 431 } 432 433 427 434 // -------------------------------------------------------------------------- 428 435 // … … 441 448 442 449 fFormula = new TFormula; 450 fFormula->SetBit(kMustCleanup); 443 451 444 452 // Must have a name otherwise all axis labels disappear like a miracle … … 517 525 if (rule) 518 526 SetRule(rule); 527 528 // Make sure that all object deleted are also deleted from this list 529 gROOT->GetListOfCleanups()->Add(this); 530 // Make sure that this doesn't remain in ListOfCleanups after deletion 531 SetBit(kMustCleanup); 519 532 } 520 533 … … 541 554 542 555 fFormula = f ? (TFormula*)f->Clone() : 0; 556 fFormula->SetBit(kMustCleanup); 543 557 gROOT->GetListOfFunctions()->Remove(fFormula); 544 558 … … 549 563 while ((o=Next())) 550 564 fMembers.AddLast(o->Clone()); 565 566 // Make sure that all object deleted are also deleted from this list 567 gROOT->GetListOfCleanups()->Add(this); 568 // Make sure that this doesn't remain in ListOfCleanups after deletion 569 SetBit(kMustCleanup); 551 570 } 552 571 -
trunk/Mars/mdata/MDataPhrase.h
r8907 r19334 36 36 // TObject 37 37 void Clear(Option_t *o=""); 38 void RecursiveRemove(TObject *obj); 38 39 39 40 // MParContainer
Note:
See TracChangeset
for help on using the changeset viewer.