Fix ivar memory management
Merge pull request #1067 from mauiaaron/v3.3

Fix ivar memory management