]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONCluster.cxx
In AliMUONCluster:
[u/mrichter/AliRoot.git] / MUON / AliMUONCluster.cxx
index a40d9fe005e2a2bec14e879359fced7c85bdbb0e..92419876bd37769a904a705e5c0dd4ff733dcb86 100644 (file)
@@ -144,16 +144,17 @@ AliMUONCluster::operator=(const AliMUONCluster& src)
 AliMUONCluster::~AliMUONCluster()
 {
   /// dtor : note that we're owner of our pads
-//   fPads.Delete();
+  //  fPads.Delete();
 }
 
 //_____________________________________________________________________________
 void
 AliMUONCluster::Clear(Option_t*)
 {
-  /// Clear our pad array
-  fPads.Clear();
-//  fPads.Delete();
+  /// Clear our pad array.
+  /// We have to call the destructor of TObjArray to be sure that all
+  /// allocated memory is released.
+  fPads.~TObjArray();
 }
 
 //_____________________________________________________________________________