libclang python bindings: Fix for bug 26394

Summary:
https://llvm.org/bugs/show_bug.cgi?id=26394 reports that clang's python bindings tests are failing.

I can confirm that the bug exists and that the proposed fix is good.

Differential Revision: http://reviews.llvm.org/D17226

llvm-svn: 263170
This commit is contained in:
Jonathan Coe 2016-03-10 23:29:45 +00:00
parent 6092de5075
commit 02281b8419
1 changed files with 1 additions and 1 deletions

View File

@ -2383,7 +2383,7 @@ class TranslationUnit(ClangObject):
functions above. __init__ is only called internally.
"""
assert isinstance(index, Index)
self.index = index
ClangObject.__init__(self, ptr)
def __del__(self):