correct freeing of PointerQueues