GUAC-236: Fix copypasto in guacenc_display_free_*() - we are freeing, not allocating.
This commit is contained in:
parent
32779ee15f
commit
86eb9c4b8a
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user