fix `make-handle-brush' to retain original pointer
In case there's a finalizer attached to the pointer object.
This commit is contained in:
parent
4b36e708a3
commit
e7f286b87d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user