Apply #3219676 from Shane Liesegang which adds: - support for %factory - a __tostring method - a __disown method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
39d8882a82
commit
5c8e5542ef
4 changed files with 55 additions and 0 deletions
|
|
@ -12,3 +12,9 @@ for x=0,100 do
|
|||
b:acquire(a)
|
||||
end
|
||||
collectgarbage() -- this will double delete unless the memory is managed properly
|
||||
|
||||
a=disown.A()
|
||||
a:__disown()
|
||||
b:remove(a)
|
||||
a=nil
|
||||
collectgarbage() -- this will double delete unless the manual disown call worked
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue