Free surface image buffer after use.

This commit is contained in:
Michael Jumper 2012-02-17 10:04:00 -08:00
parent 6fe448edf8
commit 1fb9eead92

View File

@ -74,6 +74,7 @@ void guac_rdp_pointer_new(rdpContext* context, rdpPointer* pointer) {
/* Free surface */
cairo_surface_destroy(surface);
free(data);
/* Remember buffer */
((guac_rdp_pointer*) pointer)->layer = buffer;