fix `make-handle-brush' to retain original pointer

In case there's a finalizer attached to the pointer object.
This commit is contained in:
Matthew Flatt 2012-03-28 06:26:20 -06:00
parent 4b36e708a3
commit e7f286b87d

View File

@ -159,7 +159,12 @@
s)
s-in))
(define b (new brush%))
(send b set-surface-handle-info (vector s width height #f) t)
(send b set-surface-handle-info (vector s width height
;; cache for bitmap version:
#f
;; retain original if not copied:
(if copy? #f handle))
t)
b)
(provide (protect-out surface-handle-info->bitmap))