[Python-checkins] r65678 - python/trunk/Modules/_ctypes/_ctypes.c
martin.v.loewis
python-checkins at python.org
Thu Aug 14 17:56:07 CEST 2008
Author: martin.v.loewis
Date: Thu Aug 14 17:56:07 2008
New Revision: 65678
Log:
Properly INCREF reference in Py_buffer.
Modified:
python/trunk/Modules/_ctypes/_ctypes.c
Modified: python/trunk/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/trunk/Modules/_ctypes/_ctypes.c (original)
+++ python/trunk/Modules/_ctypes/_ctypes.c Thu Aug 14 17:56:07 2008
@@ -2516,6 +2516,8 @@
if (view == NULL) return 0;
view->buf = self->b_ptr;
+ view->obj = _self;
+ Py_INCREF(_self);
view->len = self->b_size;
view->readonly = 0;
/* use default format character if not set */
More information about the Python-checkins
mailing list