[Insight-developers] List of smart pointers
William A. Hoffman
bill.hoffman@kitware.com
Fri, 01 Nov 2002 08:41:00 -0500
list.clear should call the destructor on all the smart pointers which
should free
the itk objects. The memory may be kept by the list class memory pool, but
that should not be a problem. What is the problem you are having?
-Bill
At 10:58 PM 10/30/2002 -0500, Julien Jomier wrote:
>Hi all,
>
>I have a problem deleting a list of smart pointers.
>When I do a "list.clear()" it seems that the header of
>the smart pointer is still in memory, isn't it ?
>
>Is there a way to delete completly the list?
>Should I use a list of raw pointers instead ?
>
>Thanks
>
>Julien
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers