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:
c54d832
)
glib: return NIL when g-object foreign type with :already-referenced receives null...
author
Dmitry Kalyanov
<Kalyanov.Dmitry@gmail.com>
Thu, 29 Oct 2009 12:30:01 +0000
(15:30 +0300)
committer
Dmitry Kalyanov
<Kalyanov.Dmitry@gmail.com>
Thu, 29 Oct 2009 12:30:01 +0000
(15:30 +0300)
glib/gobject.object.high.lisp
patch
|
blob
|
history
diff --git
a/glib/gobject.object.high.lisp
b/glib/gobject.object.high.lisp
index
887ea2d
..
80399b8
100644
(file)
--- a/
glib/gobject.object.high.lisp
+++ b/
glib/gobject.object.high.lisp
@@
-211,7
+211,7
@@
(defmethod translate-from-foreign (pointer (type foreign-g-object-type))
(let ((object (get-g-object-for-pointer pointer)))
- (when (foreign-g-object-type-already-referenced type)
+ (when (and object (foreign-g-object-type-already-referenced type))
(g-object-unref (pointer object)))
object))