]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
quick fix for bug https://savannah.cern.ch/bugs/?58247, futher
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Nov 2009 13:15:56 +0000 (13:15 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Nov 2009 13:15:56 +0000 (13:15 +0000)
investigation ongoing

HLT/sim/AliHLTOUTComponent.cxx

index 0d674102d7a6eb95567e31cad51767326cdb1d2b..457bc9e2717f2964acb61b3c3076a309b291a6c4 100644 (file)
@@ -167,8 +167,15 @@ int AliHLTOUTComponent::DoDeinit()
       assert(*element);
       // wanted to have a dynamic_cast<AliHLTHOMERWriter*> here, but this results into
       // undefined symbol when loading the library
-      (*element)->Clear();
-      if (*element!=NULL) fpLibManager->DeleteWriter((AliHLTHOMERWriter*)(*element));
+      if (*element!=NULL) {
+       // this ia a quick fix for bug https://savannah.cern.ch/bugs/?58247
+       // it is unclear why the pointer is not valid any more, for more
+       // details: https://savannah.cern.ch/bugs/?58083
+       //(*element)->Clear();
+       //fpLibManager->DeleteWriter((AliHLTHOMERWriter*)(*element));
+      } else {
+       HLTError("writer instance is NULL");
+      }
       element=fWriters.erase(element);
     }
   }