Qt 4 doesn't know QSharedPointer::reset()