GUAC-236: Free all buffers with appropriate function.
This commit is contained in:
parent
5149d6d5c4
commit
8ff8ccc92b
@ -241,7 +241,7 @@ int guacenc_display_free(guacenc_display* display) {
|
|||||||
|
|
||||||
/* Free all buffers */
|
/* Free all buffers */
|
||||||
for (i = 0; i < GUACENC_DISPLAY_MAX_BUFFERS; i++)
|
for (i = 0; i < GUACENC_DISPLAY_MAX_BUFFERS; i++)
|
||||||
free(display->buffers[i]);
|
guacenc_buffer_free(display->buffers[i]);
|
||||||
|
|
||||||
/* Free all layers */
|
/* Free all layers */
|
||||||
for (i = 0; i < GUACENC_DISPLAY_MAX_LAYERS; i++)
|
for (i = 0; i < GUACENC_DISPLAY_MAX_LAYERS; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user