Check cairo status in draw_util_surface_free()
Check cairo status in draw_util_surface_free()

When "something goes wrong" in cairo-land, the corresponding cairo
object goes into an error state. These errors are sticky. Thus, it is
enough to check for errors before destroying the context.

This commit adds a check in draw_util_surface_free() to check the cairo
context's status and print a log message if anything is wrong.

The idea here is to help debugging drawing issues. Instead of "nothing
visible", the corresponding log message hopefully helps debugging.

This code would have saved me lots of time in figuring out why my pull
request #4379 did not work.

Signed-off-by: Uli Schlachter <346c0ad49ac8427b61b3b55abbe37dc0ebd524f2@znc.in>

Airblader/i3,i3/i3,i3/i3,stapelberg/i3,i3/i3,i3/i3,stapelberg/i3,stapelberg/i3,Airblader/i3,Airblader/i3,stapelberg/i3,Airblader/i3