Index: trunk/MagicSoft/Mars/mfileio/MReadTree.cc
===================================================================
--- trunk/MagicSoft/Mars/mfileio/MReadTree.cc	(revision 5713)
+++ trunk/MagicSoft/Mars/mfileio/MReadTree.cc	(revision 5715)
@@ -287,4 +287,11 @@
 //  via AddNotify.
 //
+//  For unknown reasons root stores the SetAutoDelete-Flag in
+//  a branch having a custom streamer (eg. MRawEvtData).
+//  It is not allowed that a container which is in the parameter
+//  list gets a new address. Therefor we reset all the autodel flags.
+//
+//  MAKE SURE THAT ALL YOPUR CUSTOM STREAMERS TAKE CARE OF ALL MEMORY
+//
 Bool_t MReadTree::Notify()
 {
@@ -299,10 +306,27 @@
     *fLog << GetNumEntry()-1 << ")" << endl;
 
+    //
+    // For unknown reasons root stores the SetAutoDelete-Flag in
+    // a branch having a custom streamer (eg. MRawEvtData).
+    // It is not allowed that a container which is in the parameter
+    // list gets a new address. Therefor we reset all the autodel flags.
+    //
+    // MAKE SURE THAT ALL YOPUR CUSTOM STREAMERS TAKE CARE OF ALL MEMORY
+    //
+    TIter NextB(fTree->GetListOfBranches());
+    TBranch *b=0;
+    while ((b=(TBranch*)NextB()))
+        if (b->IsAutoDelete())
+        {
+            *fLog << warn << "Branch " << b->GetName() << "->IsAutoDelete() set... resetting." << endl;
+            b->SetAutoDelete(kFALSE);
+        }
+
     if (!fNotify)
         return kTRUE;
 
-    TIter Next(fNotify);
+    TIter NextN(fNotify);
     TObject *o=NULL;
-    while ((o=Next()))
+    while ((o=NextN()))
         if (!o->Notify())
         {
