Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use xcb_discard_request() when deallocating a cookie

Signed-off-by: Julien Danjou <julien@danjou.info>
  • Loading branch information...
commit 23bdee5f080ac799c49ae212f4c81cbb6ff69ad6 1 parent c5842d4
@jd jd authored sigalrm committed
Showing with 2 additions and 1 deletion.
  1. +1 −1  configure.ac
  2. +1 −0  src/cookie.c
View
2  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])
View
1  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);
Please sign in to comment.
Something went wrong with that request. Please try again.