Fix for memory leak.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Aug 2011 11:39:58 +0000 (11:39 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Aug 2011 11:39:58 +0000 (11:39 +0000)
VZERO/AliVZERO.cxx

index 613b421..356e494 100755 (executable)
@@ -266,6 +266,8 @@ void AliVZERO::Hits2Digits(){
   // Creates the digits
   dig->Exec("");
 
+  // deletes the digitizer
+  delete dig;
 }
 
 //_____________________________________________________________________________
@@ -279,6 +281,8 @@ void AliVZERO::Hits2SDigits(){
   // Creates the sdigits
   dig->Exec("");
 
+  // deletes the digitizer
+  delete dig;
 }
 
 //_____________________________________________________________________________