POV-Ray : Newsgroups : povray.programming : and another one, possible memory leak : and another one, possible memory leak Server Time
28 Jun 2024 01:47:08 EDT (-0400)
  and another one, possible memory leak  
From: Daniel Hulme
Date: 29 Oct 2004 06:30:10
Message: <20041029113009.464970ed@dh286.pem.cam.ac.uk>
In interior.cpp there is a function Copy_Interior. It just copies the
interior struct. Shouldn't it set the reference count on the new struct
to 1, as there is only one pointer to the new struct? Would this
constitute a memory leak if you copy an INTERIOR with more than one
reference and then Destroy_Interior the copy? Does anyone read these
posts or am I talking to myself?

Daniel

-- 
A most peculiar man    With the windows closed      And Mrs Reardon says
He died last Saturday  So he'd never wake up  He has a brother somewhere
He turned on the gas   To his silent world   Who should be notified soon
And he went to sleep   And his tiny room    .oO( http://sad.istic.org/ )


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.