added stackallocator destructor