just in case that the new operator failed when allocating memory.