GUAC-236: Fix copypasto in guacenc_display_free_*() - we are freeing, not allocating.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/86eb9c4b Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/86eb9c4b Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/86eb9c4b Branch: refs/heads/master Commit: 86eb9c4b8abd75b42ec5f3315cba4ce1c22f2a70 Parents: 32779ee Author: Michael Jumper <[email protected]> Authored: Tue Mar 15 19:35:06 2016 -0700 Committer: Michael Jumper <[email protected]> Committed: Tue Mar 15 19:35:06 2016 -0700 ---------------------------------------------------------------------- src/guacenc/display-buffers.c | 2 +- src/guacenc/display-layers.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/86eb9c4b/src/guacenc/display-buffers.c ---------------------------------------------------------------------- diff --git a/src/guacenc/display-buffers.c b/src/guacenc/display-buffers.c index 9fd8663..5bd68d3 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; http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/86eb9c4b/src/guacenc/display-layers.c ---------------------------------------------------------------------- diff --git a/src/guacenc/display-layers.c b/src/guacenc/display-layers.c index 23b43e7..e0406f8 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;
