Fixes #660: Hack to fix double-free (simply setting features to NULL).