Compare commits

..

1 commit

Author SHA1 Message Date
Joey
3a746e7d76 Fixed issue #100: Already released error
This issue would cause running the example program to crash with the error: 
File "/usr/local/lib/python2.7/dist-packages/llvm/passes.py", line 161, in add
    self._ptr.add(pass_obj._ptr)
  File "/usr/local/lib/python2.7/dist-packages/llvmpy/api/llvm/__init__.py", line 3726, in add
    capsule.release_ownership(unwrapped1[0])
  File "/usr/local/lib/python2.7/dist-packages/llvmpy/capsule.py", line 113, in release_ownership
    raise Exception("Already released")
Exception: Already released
2014-05-25 22:52:35 -06:00

View file

@ -222,7 +222,7 @@ class Wrapper(object):
@classmethod
def _has_dtor(cls):
return hasattr(cls, '_delete_')
return hasattr(cls, '__delete__')
#def downcast(obj, cls):