993ef4 Fix error using malloc, then delete[]

Authored and Committed by Campbell Barton 8 years ago
    Fix error using malloc, then delete[]