compositor-x11: free or discard XCB generic_error's
authorRan Benita <ran234@gmail.com>
Wed, 31 Oct 2012 18:14:56 +0000 (20:14 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 1 Nov 2012 15:12:14 +0000 (11:12 -0400)
commit7b5e3cd9b1b79929d796be804661680f6dc7f5b4
treed57f6f1198281a59950a0d86682bb7c95d010c40
parentda1c908a2bc51a6fcc58901a3772a1f1a0a3958a
compositor-x11: free or discard XCB generic_error's

Where we don't look at the error details, pass NULL to the 'error'
argument and test using the reply return value instead.
Where we do need it, remember to free it.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/compositor-x11.c