From a829018238397cb54ab1e82c8378d574ba4ea575 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 25 Jul 2011 15:57:48 -0700 Subject: [PATCH] Fixed segfault in free layer/buffer (was using wrong next pointer). --- libguac/src/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libguac/src/client.c b/libguac/src/client.c index beb91cf3..d04a267d 100644 --- a/libguac/src/client.c +++ b/libguac/src/client.c @@ -105,7 +105,7 @@ guac_layer* guac_client_alloc_layer(guac_client* client, int index) { } void guac_client_free_layer(guac_client* client, guac_layer* layer) { - layer->next = client->available_layers; + layer->next_available = client->available_layers; client->available_layers = layer; } @@ -138,7 +138,7 @@ guac_layer* guac_client_alloc_buffer(guac_client* client) { } void guac_client_free_buffer(guac_client* client, guac_layer* layer) { - layer->next = client->available_buffers; + layer->next_available = client->available_buffers; client->available_buffers = layer; }