diff options
author | Simon van der Linden <svdlinden@src.gnome.org> | 2009-11-07 23:42:07 +0100 |
---|---|---|
committer | Simon van der Linden <svdlinden@src.gnome.org> | 2009-11-09 13:41:20 +0100 |
commit | 6a69288941e65312fe82649ec72d2f21b2dc618f (patch) | |
tree | 03f4fbcb2e3cb6a7de12a36cf2d5027c9ed15122 /glib/glibmodule.c | |
parent | 000f7c36e667c6e078e3370769ea868e56a1b4ee (diff) | |
download | pygobject-6a69288941e65312fe82649ec72d2f21b2dc618f.tar.gz pygobject-6a69288941e65312fe82649ec72d2f21b2dc618f.tar.xz pygobject-6a69288941e65312fe82649ec72d2f21b2dc618f.zip |
Create instances by calling tp_alloc rather than PyObject_NEW
PyObject_NEW calls a generic allocator and should only be called by tp_new, knowing
that the type's free function agrees. In pyg_boxed_new, we may allocate
PyGBoxed subtypes, so the subtype's allocation function must be called instead.
Diffstat (limited to 'glib/glibmodule.c')
0 files changed, 0 insertions, 0 deletions