Commit 5d34421d authored by Ahmad Samir's avatar Ahmad Samir
Browse files

kio_nfs: delete can be safely called on a nullptr

parent 752651a5
......@@ -73,9 +73,7 @@ NFSSlave::NFSSlave(const QByteArray& pool, const QByteArray& app)
}
NFSSlave::~NFSSlave()
{
if (m_protocol != nullptr) {
delete m_protocol;
}
delete m_protocol;
}
void NFSSlave::openConnection()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment