summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-10-03 13:02:36 +0000
committerBram Moolenaar <Bram@vim.org>2006-10-03 13:02:36 +0000
commit658ada69f4fe6ba337228d2cb71bb1cafe0d26e9 (patch)
tree05f462ab35315bb1d39a0d99c8a4730f944ecabe /src/if_python.c
parent60a495f02e7dec1db1776d8344cdd4da6a52a41f (diff)
downloadvim-git-658ada69f4fe6ba337228d2cb71bb1cafe0d26e9.tar.gz
updated for version 7.0-112v7.0.112
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/if_python.c b/src/if_python.c
index e0fd34884..adcb52d2b 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -1463,7 +1463,7 @@ BufferDestructor(PyObject *self)
if (this->buf && this->buf != INVALID_BUFFER_VALUE)
this->buf->b_python_ref = NULL;
- PyMem_DEL(self);
+ Py_DECREF(self);
}
static PyObject *
@@ -1674,7 +1674,7 @@ RangeNew(buf_T *buf, int start, int end)
bufr = (BufferObject *)BufferNew(buf);
if (bufr == NULL)
{
- PyMem_DEL(self);
+ Py_DECREF(self);
return NULL;
}
Py_INCREF(bufr);
@@ -1690,7 +1690,7 @@ RangeNew(buf_T *buf, int start, int end)
RangeDestructor(PyObject *self)
{
Py_DECREF(((RangeObject *)(self))->buf);
- PyMem_DEL(self);
+ Py_DECREF(self);
}
static PyObject *
@@ -1944,7 +1944,7 @@ WindowDestructor(PyObject *self)
if (this->win && this->win != INVALID_WINDOW_VALUE)
this->win->w_python_ref = NULL;
- PyMem_DEL(self);
+ Py_DECREF(self);
}
static int