Commit 3134b410 authored by David Faure's avatar David Faure

Fix KDirOperator crash with libc++, due to unique_ptr difference

Same reasoning as the previous commit
parent a8a2c080
...@@ -214,6 +214,12 @@ public: ...@@ -214,6 +214,12 @@ public:
KDirOperatorPrivate::~KDirOperatorPrivate() KDirOperatorPrivate::~KDirOperatorPrivate()
{ {
if (m_itemView) {
// fix libc++ crash: its unique_ptr implementation has already set 'd' to null
// and the event filter will get a QEvent::Leave event if we don't remove it.
m_itemView->removeEventFilter(q);
}
delete m_itemView; delete m_itemView;
m_itemView = nullptr; m_itemView = nullptr;
......
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