projects
/
cl-gtk2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2624d00
)
check at get-stable-pointer-value
author
Dmitry Kalyanov
<Kalyanov.Dmitry@gmail.com>
Mon, 16 Mar 2009 23:42:39 +0000
(
02:42
+0300)
committer
Dmitry Kalyanov
<Kalyanov.Dmitry@gmail.com>
Mon, 16 Mar 2009 23:42:39 +0000
(
02:42
+0300)
glib/gobject.foreign.lisp
patch
|
blob
|
history
diff --git
a/glib/gobject.foreign.lisp
b/glib/gobject.foreign.lisp
index
ce6d42f
..
0738cdc
100644
(file)
--- a/
glib/gobject.foreign.lisp
+++ b/
glib/gobject.foreign.lisp
@@
-39,7
+39,8
@@
(setf (aref *registered-stable-pointers* (pointer-address stable-pointer)) nil))
(defun get-stable-pointer-value (stable-pointer)
- (aref *registered-stable-pointers* (pointer-address stable-pointer)))
+ (when (<= 0 (pointer-address stable-pointer) (length *registered-stable-pointers*))
+ (aref *registered-stable-pointers* (pointer-address stable-pointer))))
(defun find-fresh-id ()
(or (position nil *registered-stable-pointers*)