This should be on the stack, then you don't need to worry about managing memory or closing it (it's automatically closed in its destructor).
```c++
QFile destination_file(filename);
```