FlorianRappl/AngleSharp — pull request #27 by Livven (2014-10-12 13:25:40+00:00)
Title: Fix thread synchronization bug

In the `Pool.ToPool` extension method, `StringBuilder` objects were being pushed to the common pool before before their results were retrieved outside the lock. This could lead to `Clear` and `ToString` being called on the same `StringBuilder` object across two different threads (by `Pool.NewStringBuilder` and `Pool.ToPool`, respectively), resulting in a corrupted return value containing a bunch of `\0` characters.