Fixed cases where the destructor is called on an uninitialized temporary