diff --git a/src/guacenc/display-buffers.c b/src/guacenc/display-buffers.c index 9fd8663d..5bd68d35 100644 --- a/src/guacenc/display-buffers.c +++ b/src/guacenc/display-buffers.c @@ -71,7 +71,7 @@ int guacenc_display_free_buffer(guacenc_display* display, /* Transform index to buffer space */ int internal_index = -index - 1; - /* Do not lookup / allocate if index is invalid */ + /* Do not lookup / free if index is invalid */ if (internal_index < 0 || internal_index > GUACENC_DISPLAY_MAX_BUFFERS) { guacenc_log(GUAC_LOG_WARNING, "Buffer index out of bounds: %i", index); return 1; diff --git a/src/guacenc/display-layers.c b/src/guacenc/display-layers.c index 23b43e75..e0406f8b 100644 --- a/src/guacenc/display-layers.c +++ b/src/guacenc/display-layers.c @@ -84,7 +84,7 @@ int guacenc_display_get_depth(guacenc_display* display, guacenc_layer* layer) { int guacenc_display_free_layer(guacenc_display* display, int index) { - /* Do not lookup / allocate if index is invalid */ + /* Do not lookup / free if index is invalid */ if (index < 0 || index > GUACENC_DISPLAY_MAX_LAYERS) { guacenc_log(GUAC_LOG_WARNING, "Layer index out of bounds: %i", index); return 1;