GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] FairWriteoutBuffer::FillNewData and object ownership (memory leak)
Re: FairWriteoutBuffer::FillNewData and object ownership (memory leak) [message #14417 is a reply to message #14416] Fri, 01 February 2013 00:58 Go to previous messageGo to previous message
Oliver Merle is currently offline  Oliver Merle
Messages: 13
Registered: December 2010
occasional visitor
From: *dip.t-dialin.net
Just because you mentioned that you would find it more elegant to copy the data via the base class: TObject::Clone() does actually call the constructor of the derived class via the base class.

I would naively expect that FairTimeStamp * my_copy = (FairTimeStamp*)digit->Clone() should do the trick for any derived digit class, but I'm no ROOTer and maybe I am not aware of any pitfalls in the ROOT RTTI (like that template thing).

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [FIXED] magnet geometry simulation problem
Next Topic: [WONTFIX] sep12 external package crash during installation on fedora 18
Goto Forum:
  


Current Time: Thu Mar 28 22:41:40 CET 2024

Total time taken to generate the page: 0.01204 seconds