*** empty log message ***

This commit is contained in:
David Rose 2001-05-11 18:42:40 +00:00
parent ab8ad953d5
commit c93fc1092c
1 changed files with 7 additions and 4 deletions

View File

@ -108,13 +108,16 @@ class FFIExternalObject:
if (exactWrapperClass and (exactWrapperClass != self.__class__)):
# Create a new wrapper class instance
exactObject = exactWrapperClass(None)
# Get the downcast pointer that has had all the downcast funcs called
# Get the downcast pointer that has had all the downcast
# funcs called
downcastObject = self.downcast(exactWrapperClass)
exactObject.this = downcastObject.this
exactObject.userManagesMemory = downcastObject.userManagesMemory
# Make sure the original downcast object does not get garbage collected
# so that the exactObject will not get gc'd thereby transferring ownership
# of the object to this new exactObject
# Make sure the original downcast object does not get
# garbage collected so that the exactObject will not get
# gc'd thereby transferring ownership of the object to
# this new exactObject
downcastObject.userManagesMemory = 0
return exactObject
else: