mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Fix Windows compilation errors
This commit is contained in:
parent
da80b1eb2f
commit
08b852970e
1 changed files with 4 additions and 2 deletions
|
|
@ -264,17 +264,19 @@ create_extra(ElementObject* self, PyObject* attrib)
|
|||
LOCAL(void)
|
||||
dealloc_extra(ElementObject* self)
|
||||
{
|
||||
ElementObjectExtra *myextra;
|
||||
int i;
|
||||
|
||||
if (!self->extra)
|
||||
return;
|
||||
|
||||
/* Avoid DECREFs calling into this code again (cycles, etc.)
|
||||
*/
|
||||
ElementObjectExtra *myextra = self->extra;
|
||||
myextra = self->extra;
|
||||
self->extra = NULL;
|
||||
|
||||
Py_DECREF(myextra->attrib);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < myextra->length; i++)
|
||||
Py_DECREF(myextra->children[i]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue