[IGSTK-Developers] Memoryleak in igstk

Matt Turek matt.turek at kitware.com
Tue Dec 18 15:20:58 EST 2007


Torleif,

Nice catch, there is indeed a memory leak. It is related to the 
CoordinateReferenceSystemDelegator and its use of another object (for 
instance a SpatialObject) for event invocation. This results in a 
circular smart pointer reference as the SpatialObject owns a 
CoordinateReferenceSystemDelegator.

I'll be working on a fix as we move forward with the consolidation this 
week.

Matt


Torleif Sandnes wrote:
> Hi.
>
> I think I have found another memoryleak, but this time I don´t know 
> where the problem is.
> The attached program (~35 lines of code) illustrates the problem;
>
> Using an earlier version of the sandbox, the referencecount of the 
> MRImageSpatialObject goes to 0 and the object is destroyed. Using the 
> current version, however, the object is not destroyed.
>
> I suspect this may have something to do with the introduction of the 
> scenegraph?
>
>
> Regards,
> Torleif
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> IGSTK-Developers mailing list
> IGSTK-Developers at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers


-- 
Matt Turek, Ph.D.
R&D Engineer
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x142
email: Matt.Turek at kitware.com




More information about the IGSTK-Developers mailing list