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:
William S Fulton 2012-04-13 18:28:37 +00:00
commit 5c8e5542ef
4 changed files with 55 additions and 0 deletions

View file

@ -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