POV-Ray : Newsgroups : povray.programming : and another one, possible memory leak : Re: and another one, possible memory leak Server Time
28 Sep 2024 11:00:39 EDT (-0400)
  Re: and another one, possible memory leak  
From: Le Forgeron
Date: 29 Oct 2004 08:05:56
Message: <Xns95918F6C16AE0jgrimbertmeandmyself@203.29.75.35>


> 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
> 

I read... but do I care, that's totally another question.
I did not go look at the code, but did you check that:
 - it copy the reference count, really ?
 - didn't it create the interior structure first, with the count set to 1
   during the creation.



-- 




l'habillement, les chaussures que le maquillage et les accessoires.


Post a reply to this message

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