Two fixes to prevent memory leak from occuring.
Bump to 1.2.2. Update CHANGELOG.