summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2007-08-04 13:40:50 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2007-08-04 13:40:50 +0200
commitbea585df2a7ba9da57d29ef3fff6b6a3d4d8bb97 (patch)
treeef2134bdd3fa102eabeef7bd6a856d74758ff036
parent4189fe61c27a961e7e7e60b165b9645a827cd076 (diff)
Fix a stupid memory leak.
darcs-hash:6917e11f840735f52ed29b5a6b08fbef825f5f7f
-rw-r--r--objcl.lisp6
1 files changed, 2 insertions, 4 deletions
diff --git a/objcl.lisp b/objcl.lisp
index e5b695d..609b88f 100644
--- a/objcl.lisp
+++ b/objcl.lisp
@@ -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"))))