Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 64131783 authored by Laurent Montel's avatar Laurent Montel 😁

Don't crash when pointer is nul

parent 2454b2b9
......@@ -88,8 +88,10 @@ NodeHelper::NodeHelper() :
NodeHelper::~NodeHelper()
{
//Don't delete it it will delete in class with a deleteLater;
mAttachmentFilesDir->removeTempFiles();
mAttachmentFilesDir = 0;
if (mAttachmentFilesDir) {
mAttachmentFilesDir->removeTempFiles();
mAttachmentFilesDir = 0;
}
}
void NodeHelper::setNodeProcessed(KMime::Content* node, bool recurse )
......
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