In this code, we call qr->asFindCommand().toString() after qr has been moved. This can result in a segfault.