diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2007-08-04 13:40:50 +0200 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2007-08-04 13:40:50 +0200 |
commit | bea585df2a7ba9da57d29ef3fff6b6a3d4d8bb97 (patch) | |
tree | ef2134bdd3fa102eabeef7bd6a856d74758ff036 | |
parent | 4189fe61c27a961e7e7e60b165b9645a827cd076 (diff) |
Fix a stupid memory leak.
darcs-hash:6917e11f840735f52ed29b5a6b08fbef825f5f7f
-rw-r--r-- | objcl.lisp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -5,9 +5,6 @@ (use-foreign-library libobjcl) -(defctype pointer-array :pointer - "An array of void pointers.") - (deftype c-pointer () '(satisfies pointerp)) @@ -98,7 +95,8 @@ (let ((saved-pointer (pointer-to new-obj)) (saved-type (type-of new-obj))) (flet ((finalizer () - (let ((temp (let ((*skip-finalization* t)) + (let ((temp (let ((*skip-finalization* t) + (*skip-retaining* t)) (make-instance saved-type :pointer saved-pointer)))) (objcl-invoke-class-method temp "release")))) |