[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: segv on bad gobject get call
- From: "muppet" <scott asofyet org>
- To: gtk-perl-list gnome org
- Subject: Re: segv on bad gobject get call
- Date: Mon, 10 Dec 2007 19:41:07 -0500 (EST)
Kevin Ryde wrote:
> I see the typemap sends a non-object like a class name string to a
> "GObject*" of NULL, and that goes to init_property_value(), which calls
> G_OBJECT_GET_CLASS and that macro doesn't check, just fetches from NULL.
> Are you sure maybe someone along that path shouldn't notice it's bad?
I think the point you're making is that
gperl.h:249:#define SvGObject(sv) (gperl_get_object (sv))
ought to be
gperl.h:249:#define SvGObject(sv) (gperl_get_object_check (sv, G_TYPE_OBJECT))
and, quite frankly, i don't know why it isn't.
--
muppet <scott at asofyet dot org>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]