On Tue, Nov 23, 2010 at 11:00 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im"><br>
</div>No, I&#39;m not sure. VTK_DEBUG_LEAKS is NOT complaining, it just seemed<br>
like the first object shouldn&#39;t just magically go away. But maybe this<br>
IS the case. I guess the smart pointer can only hold one reference, so<br>
when it takes the new object it automatically deletes the old object?<br></blockquote><div><br>No magic is involved.  The smart pointer is designed to delete its previous<br>object when a new object is assigned to it. <br>

</div><div><br>  David<br></div></div>