[vtkusers] Recreating a smart pointer object after deletion

David Gobbi david.gobbi at gmail.com
Tue Nov 23 13:05:01 EST 2010


On Tue, Nov 23, 2010 at 11:00 AM, David Doria <daviddoria at gmail.com> wrote:

>
> No, I'm not sure. VTK_DEBUG_LEAKS is NOT complaining, it just seemed
> like the first object shouldn't just magically go away. But maybe this
> IS the case. I guess the smart pointer can only hold one reference, so
> when it takes the new object it automatically deletes the old object?
>

No magic is involved.  The smart pointer is designed to delete its previous
object when a new object is assigned to it.

  David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101123/d2944ae0/attachment.htm>


More information about the vtkusers mailing list