This doesn't appear to be a problem in practice, but the docs don't say that Qt couldn't retain this QByteArray for later, which would result in a UAF with the current code.