Fixed crash in quantum_queue_clear() when queue is empty.
Merge branch 'fix_destroy' into devel