diff options
author | Julien Danjou <julien@danjou.info> | 2010-03-15 13:35:35 +0100 |
---|---|---|
committer | Eamon Walsh <efw@eamonwalsh.com> | 2010-03-15 19:46:38 -0400 |
commit | 23bdee5f080ac799c49ae212f4c81cbb6ff69ad6 (patch) | |
tree | 34ec4af34ee1cdf42b7555405bf1b3a28861a79c | |
parent | c5842d48d4b9f9b1e65adde886b6e6aeda667154 (diff) |
Use xcb_discard_request() when deallocating a cookie
Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/cookie.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4f01541..bed3ee6 100644 --- a/configure.ac +++ b/configure.ac @@ -28,7 +28,7 @@ AC_PROG_CC # Checks for pkg-config packages PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 1.6) -PKG_CHECK_MODULES(LIBXCB, xcb >= 1.1) +PKG_CHECK_MODULES(LIBXCB, xcb > 1.5) # Find the xcb-proto protocol descriptions AC_MSG_CHECKING([for xcb-proto include dir]) diff --git a/src/cookie.c b/src/cookie.c index db0a20f..6c43e62 100644 --- a/src/cookie.c +++ b/src/cookie.c @@ -23,6 +23,7 @@ xpybCookie_new(PyTypeObject *self, PyObject *args, PyObject *kw) static void xpybCookie_dealloc(xpybCookie *self) { + xcb_discard_reply(c, self->cookie.sequence); Py_CLEAR(self->reply_type); Py_CLEAR(self->request); Py_CLEAR(self->conn); |