Fixed double delete in bsdfb plugin on app exit

Fixed double delete of QBsdFbScreen in destructor, first it was
deleted in destroyScreen, then as a smart pointer. Take ownership of
pointer before passing it to destroyScreen to avoid second delete.

Change-Id: I252fcd1f31a32b463ecefce5b7139c4b3c857d33
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Oleksandr Tymoshenko 2016-09-07 17:26:01 -07:00
parent 7c713701bb
commit e0254fdacc

View File

@ -63,7 +63,7 @@ QBsdFbIntegration::QBsdFbIntegration(const QStringList &paramList)
QBsdFbIntegration::~QBsdFbIntegration()
{
destroyScreen(m_primaryScreen.data());
destroyScreen(m_primaryScreen.take());
}
void QBsdFbIntegration::initialize()