Fixed segfault in free layer/buffer (was using wrong next pointer).
This commit is contained in:
parent
3828702b64
commit
a829018238
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user