tests/test.c: fix crash in cleanup function
The GQueue used in NotifySocket
is statically allocated and thus must not be freed via g_queue_free_full
. Instead we manually free each dynamically allocated element and then call clear the queue via g_queue_clear
.