summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-11-30 18:42:00 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2012-12-07 15:24:57 +1000
commit6c98af3dc16d3357c7e2393015233937da313ac2 (patch)
treef47cc05f54b976b7775a4d196b02000a48938191
parentd6e2c8f0e60a4642d388fc3cfe7b59f78c7b881a (diff)
drop a leak
whoops
-rw-r--r--src/XExtInt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index ad09b03..6dd5d00 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -1999,7 +1999,7 @@ wireToBarrierEvent(xXIBarrierEvent *in, XGenericEventCookie *cookie)
{
XIBarrierEvent *out = malloc(sizeof(XIBarrierEvent));
- out = cookie->data = calloc(1, sizeof(XIBarrierEvent));
+ cookie->data = out;
out->display = cookie->display;
out->type = in->type;