GUAC-236: Free all buffers with appropriate function.

This commit is contained in:
Michael Jumper 2016-02-27 18:43:41 -08:00
parent 5149d6d5c4
commit 8ff8ccc92b

View File

@ -241,7 +241,7 @@ int guacenc_display_free(guacenc_display* display) {
/* Free all buffers */
for (i = 0; i < GUACENC_DISPLAY_MAX_BUFFERS; i++)
free(display->buffers[i]);
guacenc_buffer_free(display->buffers[i]);
/* Free all layers */
for (i = 0; i < GUACENC_DISPLAY_MAX_LAYERS; i++)