View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012139 | VTK | (No Category) | public | 2011-04-29 17:39 | 2014-10-02 09:44 | ||||
Reporter | Timothy Shead | ||||||||
Assigned To | David Gobbi | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0012139: 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. | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0026289) Timothy Shead (reporter) 2011-04-29 17:40 |
vtkSQLDatabase::CreateFromURL() falls into this category. |
(0026290) Timothy Shead (reporter) 2011-04-29 17:40 |
vtkSQLDatabase::GetQueryInstance() also falls into this category. |
(0026291) David Gobbi (developer) 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 (developer) 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 [^] |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-04-29 17:39 | Timothy Shead | New Issue | |
2011-04-29 17:40 | Timothy Shead | Note Added: 0026289 | |
2011-04-29 17:40 | Timothy Shead | Note Added: 0026290 | |
2011-04-29 17:47 | David Gobbi | Assigned To | => David Gobbi |
2011-04-29 17:47 | David Gobbi | Status | backlog => tabled |
2011-04-29 17:52 | David Gobbi | Note Added: 0026291 | |
2011-05-02 10:12 | David Cole | Note Added: 0026297 | |
2014-10-02 09:44 | Berk Geveci | Status | backlog => closed |
2014-10-02 09:44 | Berk Geveci | Resolution | open => no change required |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |