Commit 517ee7c7 authored by Christoph Haag's avatar Christoph Haag

shake-compensation: make compatible with glib < 2.59.1

g_queue_clear_full is introduced in a very recent API change
parent 50c5c79b
......@@ -155,7 +155,11 @@ void
xrd_shake_compensator_reset (XrdShakeCompensator *self)
{
if (self->queue)
g_queue_clear_full (self->queue, g_free);
{
for (graphene_point_t *p = g_queue_pop_tail (self->queue); p != NULL;
p = g_queue_pop_tail (self->queue))
g_free (p);
}
self->queue = NULL;
self->last_press_button = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment