Correct array deallocation
Merge pull request #1610 from 0xc0dec/master

Correct array deallocation
Merge pull request #5 from gameplay3d/master

merge from the major github repository