1.4 release hotfix 2

Fixed memory leaks.