Fixed memoryleak in CStackArray.

Props to Bromvlieg for letting me know about this.