Skip to content
Commit 96f14989 authored by Steve Frécinaux's avatar Steve Frécinaux Committed by Martin Pitt
Browse files

Fix segfault when accessing __grefcount__ before creating the GObject

When creating a new instance using Type() and trying to access
__grefcount__ before calling the subclass's __init__ function, there
used to be a segmentation fault because we were trying to access the
not yet created object. Now raise a proper exception instead.

https://bugzilla.gnome.org/show_bug.cgi?id=640434



Co-authored-by: default avatarMartin Pitt <martinpitt@gnome.org>
parent 24cc09a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment