Forgot to delete C-style array that caused occasional crash