[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disposing of pointers
- To: eliot@clarity.Princeton.EDU
- Subject: Re: disposing of pointers
- From: hughes@aristotle.ils.nwu.edu (Lucian Hughes)
- Date: Thu, 25 Apr 91 12:17:04 CDT
- Cc: info-mcl@cambridge.apple.com
>Can someone tell me how to dispose of a pointer? I'm making
>bitmaps using make-bitmap in quickdraw.lisp and can't seem to be able to
>get rid of them afterwords.
Here's example
of how to:
(setf tmp-bmap (make-bitmap 0 0 10 10))
...
(dispose-record tmp-bmap :bitmap)
(setf tmp-bmap nil) ; important to nil lisp var holding pointer
; since ptr meaningless now & could lead to
;crashes during GC