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 #14414 is a reply to message #14403] Wed, 30 January 2013 17:43 Go to previous messageGo to previous message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *ikp.kfa-juelich.de
Dear Olliver,

thank you for pointing out the memory leak. You are right this is a bug.

I fixed it now in a way that the data is deleted inside the FairWriteoutBuffer. No additional delete is necessary in your code.

This is not the most elegent way. I would have prefered to leave the deletion of the data to the one who created it but the I would have to call the constructor of the data to create a copy which I cannot do in a base class.

Cheers,

Tobias
 
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: Sat Apr 20 13:15:54 CEST 2024

Total time taken to generate the page: 0.01301 seconds