Resolve memory leak with result of factoryDefaults()
Merge pull request #223 from Echelon9/fix-issue-222

Resolve memory leak with result of factoryDefaults()