Lines Matching refs:weakref
241 PyObject* weakref;
246 weakref = PyList_GetItem(self->statements, i);
247 statement = PyWeakref_GetObject(weakref);
259 weakref = PyList_GetItem(self->cursors, i);
260 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref);
306 PyObject* weakref;
308 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL);
309 if (!weakref) {
313 if (PyList_Append(connection->cursors, weakref) != 0) {
314 Py_CLEAR(weakref);
318 Py_DECREF(weakref);
802 PyObject* weakref;
818 weakref = PyList_GetItem(self->statements, i);
819 if (PyWeakref_GetObject(weakref) != Py_None) {
820 if (PyList_Append(new_list, weakref) != 0) {
833 PyObject* weakref;
849 weakref = PyList_GetItem(self->cursors, i);
850 if (PyWeakref_GetObject(weakref) != Py_None) {
851 if (PyList_Append(new_list, weakref) != 0) {
1194 PyObject* weakref;
1236 weakref = PyWeakref_NewRef((PyObject*)statement, NULL);
1237 if (!weakref) {
1242 if (PyList_Append(self->statements, weakref) != 0) {
1243 Py_CLEAR(weakref);
1247 Py_DECREF(weakref);