[vtk-developers] [VTK 0012139]: Wrapper support for factory methods

Mantis Bug Tracker mantis at public.kitware.com
Fri Apr 29 17:39:42 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12139 
====================================================================== 
Reported By:                Timothy Shead
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12139
Category:                   (No Category)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-04-29 17:39 EDT
Last Modified:              2011-04-29 17:39 EDT
====================================================================== 
Summary:                    Wrapper support for factory methods
Description: 
Currently, the wrapper generators only recognize a hard-coded list of factory
methods that return new VTK objects, such as "New()" and "NewInstance()".  The
wrapper generators need to know which methods are factory methods, so that
reference counts are maintained correctly - otherwise, the generated wrappers
automatically increment the reference count of all returned VTK objects, leading
to reference leaks for objects returned by factory methods.

This bug exists to keep track of such factory methods, so they can be updated
appropriately, either by adding them to the hard-coded list, or by adding
appropriate hints once a hinting mechanism is available.


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-29 17:39 Timothy Shead  New Issue                                    
======================================================================




More information about the vtk-developers mailing list