Cleaning up memory handling (make sure nothing gets orphaned).
Cleaning up memory handling (make sure nothing gets orphaned).

Summary: Cleaning up memory handling (make sure nothing gets orphaned).

Test Plan: Tested in Linux.  Want to test in Windows.

Reviewers: szielinski, ssirigam

Reviewed By: szielinski, ssirigam

Differential Revision: http://cr.irl.ucf.edu/D390

ucfistirl/physx-wrapper,ucfistirl/physx-wrapper