From 76eee80738397fdf8c7baaf9a609e49174fa9b5d Mon Sep 17 00:00:00 2001 From: Jay Nabonne Date: Wed, 30 Jan 2019 15:21:43 +0000 Subject: [PATCH] Initialize m_pendingMimeData to NULL! --- src/qt/dnd.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qt/dnd.cpp b/src/qt/dnd.cpp index 9b799324b8..eddc667d52 100644 --- a/src/qt/dnd.cpp +++ b/src/qt/dnd.cpp @@ -112,7 +112,8 @@ class wxDropTarget::Impl : public QObject public: explicit Impl(wxDropTarget* dropTarget) : m_dropTarget(dropTarget), - m_widget(NULL) + m_widget(NULL), + m_pendingMimeData(NULL) { } @@ -241,9 +242,9 @@ private: return !m_dropTarget->GetMatchingPair().GetMimeType().empty(); } - const QMimeData* m_pendingMimeData; wxDropTarget* m_dropTarget; QWidget* m_widget; + const QMimeData* m_pendingMimeData; }; wxDropTarget::wxDropTarget(wxDataObject *dataObject)