Fixed buffer cleaning with nested buffers.
Merge pull request #52 from istvan-ujjmeszaros/ob_end_clean

Fixed buffer cleaning with nested buffers.