]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix: the pointer was not reset after freeing the event.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Sep 2009 20:18:30 +0000 (20:18 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Sep 2009 20:18:30 +0000 (20:18 +0000)
RAW/AliRawReaderDateOnline.cxx

index db47ba36d5bc5fcf9d8af8164f2f5bce7c56b21c..75652c428e61df091d4895871bb89068c48fd1c0 100644 (file)
@@ -100,6 +100,8 @@ Bool_t AliRawReaderDateOnline::NextEvent()
   // Stop on SIGUSR1
   if (fStop) {
     AliInfo("Raw-data reading stopped by SIGUSR1");
+    if (fEvent) free(fEvent);
+    fEvent = NULL;
     return kFALSE;
   }
 
@@ -144,6 +146,7 @@ Bool_t AliRawReaderDateOnline::NextEvent()
     
     if (!IsEventSelected()) {
       free(fEvent);
+      fEvent = NULL;
       continue;
     }