[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disposing of pointers

>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