static void HttpResult_dealloc(pycbc_HttpResult *self) { Py_XDECREF(self->http_data); Py_XDECREF(self->parent); pycbc_Result_dealloc((pycbc_Result*)self); }
static void HttpResult_dealloc(pycbc_HttpResult *self) { if (self->u.htreq) { if (self->parent) { if (self->htype == PYCBC_HTTP_HVIEW) { lcb_view_cancel(self->parent->instance, self->u.vh); } else { lcb_cancel_http_request(self->parent->instance, self->u.htreq); } } self->u.htreq = NULL; } Py_XDECREF(self->http_data); Py_XDECREF(self->headers); Py_XDECREF(self->parent); pycbc_Result_dealloc((pycbc_Result*)self); }
static void HttpResult_dealloc(pycbc_HttpResult *self) { pycbc_Connection *parent = self->parent; self->parent = NULL; if (self->htreq) { lcb_cancel_http_request(parent->instance, self->htreq); self->htreq = NULL; } Py_XDECREF(self->http_data); Py_XDECREF(parent); Py_XDECREF(self->headers); Py_XDECREF(self->rowsbuf); Py_XDECREF(self->callback); if (self->rctx) { lcbex_vrow_free(self->rctx); self->rctx = NULL; } pycbc_Result_dealloc((pycbc_Result*)self); }
static void OperationResult_dealloc(pycbc_OperationResult *self) { Py_CLEAR(self->mutinfo); pycbc_Result_dealloc((pycbc_Result*)self); }