MantisBT - VTK
View Issue Details
0012139VTK(No Category)public2011-04-29 17:392014-10-02 09:44
Timothy Shead 
David Gobbi 
normalminoralways
closedno change required 
 
 
0012139: Wrapper support for factory methods
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.

No tags attached.
Issue History
2011-04-29 17:39Timothy SheadNew Issue
2011-04-29 17:40Timothy SheadNote Added: 0026289
2011-04-29 17:40Timothy SheadNote Added: 0026290
2011-04-29 17:47David GobbiAssigned To => David Gobbi
2011-04-29 17:47David GobbiStatusbacklog => tabled
2011-04-29 17:52David GobbiNote Added: 0026291
2011-05-02 10:12David ColeNote Added: 0026297
2014-10-02 09:44Berk GeveciStatusbacklog => closed
2014-10-02 09:44Berk GeveciResolutionopen => no change required

Notes
(0026289)
Timothy Shead   
2011-04-29 17:40   
vtkSQLDatabase::CreateFromURL() falls into this category.
(0026290)
Timothy Shead   
2011-04-29 17:40   
vtkSQLDatabase::GetQueryInstance() also falls into this category.
(0026291)
David Gobbi   
2011-04-29 17:52   
Okay, I've patched these two (commit 3923d7b7168432e399a9f3d07e1586ae045cc1a1).
Leaving the bug open until a hinting mechanism for this has been added to VTK.
(0026297)
David Cole   
2011-05-02 10:12   
See also this email thread which led to the creation of this bug:

  http://www.vtk.org/pipermail/vtk-developers/2011-April/009757.html [^]