Fixed segfault in free layer/buffer (was using wrong next pointer).

This commit is contained in:
Michael Jumper 2011-07-25 15:57:48 -07:00
parent 3828702b64
commit a829018238

View File

@ -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;
}