Fixes possible memory leak, fixes #3