Fix memory leak in destructor.

Destructor doesn't deallocate last Block if queue have more than one.
Merged in hanickadot's fix for memory leak in destructor (f259dead83229007a4cdfc8c8c6fdad145fb8025)