Permalink
Browse files

Use xcb_discard_request() when deallocating a cookie

Signed-off-by: Julien Danjou <julien@danjou.info>
  • Loading branch information...
jd authored and Eamon Walsh committed Mar 15, 2010
1 parent c5842d4 commit 23bdee5f080ac799c49ae212f4c81cbb6ff69ad6
Showing with 2 additions and 1 deletion.
  1. +1 −1 configure.ac
  2. +1 −0 src/cookie.c
View
@@ -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])
View
@@ -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);

0 comments on commit 23bdee5

Please sign in to comment.