Created attachment 19207 [details] [review]
Valgrind reports invalid reads like
==29335== Invalid read of size 4
==29335== at 0xAC0E49: XSyncListSystemCounters (in /usr/lib/libXext.so.6.4.0)
==29335== Address 0x404d888 is 48 bytes inside a block of size 49 alloc'd
==29335== at 0x4006AEE: malloc (vg_replace_malloc.c:207)
==29335== by 0xAC0DD3: XSyncListSystemCounters (in /usr/lib/libXext.so.6.4.0)
This probably isn't a problem on any real world system, but I think it would be
nice to shut up valgrind anyway.
Attached patch should fix that.
This patch (more or less) was committed as f467d17ae5a89aa1a2b8c7260334f41e8ee2d08c.
Might as well close the bug :)
on Aug 28, 2016 at 18:53:47.
(provided by the Example extension).