Don't pass cairo surfaces around on the lua stack
commite57af377bb8cd032f19df9f657fdd7a064273ced
authorUli Schlachter <psychon@znc.in>
Mon, 28 May 2012 07:29:47 +0000 (28 09:29 +0200)
committerUli Schlachter <psychon@znc.in>
Mon, 28 May 2012 07:29:47 +0000 (28 09:29 +0200)
treebeb30230ee393cd9505a5a8b3c25cdf390e6451e
parent68d630c32a98061a907d5ba290cd388e051c6ab2
Don't pass cairo surfaces around on the lua stack

Now that the C code uses lightuserdata for passing around cairo surfaces, they
are no longer automatically garbage collected. To avoid memleaks, this commit
compares the C code to use cairo_surface_t pointers instead of the lua stack.

This also fixes a memleak were a client's icon was leaked.

Signed-off-by: Uli Schlachter <psychon@znc.in>
draw.c
draw.h
ewmh.c
ewmh.h
luaa.c
objects/client.c
objects/client.h
property.c