]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Check ownership of quad-ids in Reset().
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Mar 2007 11:51:19 +0000 (11:51 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Mar 2007 11:51:19 +0000 (11:51 +0000)
EVE/Reve/QuadSet.cxx

index a70c60a603a2fec35ce827b3fb6277143bb438bf..6ba13fbf2e28adb49d6ff08c9e38b7fa865e5f6b 100644 (file)
@@ -271,7 +271,8 @@ void QuadSet::Reset(QuadSet::QuadType_e quadType, Bool_t valIsCol, Int_t chunkSi
   fQuadType     = quadType;
   fValueIsColor = valIsCol;
   fDefaultValue = valIsCol ? 0 : kMinInt;
-  ReleaseIds();
+  if (fOwnIds)
+    ReleaseIds();
   fPlex.Reset(SizeofAtom(fQuadType), chunkSize);
 }