diff options
author | Oleksandr Tymoshenko <gonzo@bluezbox.com> | 2016-09-07 17:26:01 -0700 |
---|---|---|
committer | Oleksandr Tymoshenko <gonzo@bluezbox.com> | 2016-09-22 15:24:20 +0000 |
commit | e0254fdacc41b89fc515e12766fcf2db1e4929ed (patch) | |
tree | e528082650f06b2feb27efcac2d485f88d536e36 /src/plugins/platforms | |
parent | 7c713701bb302a27cb48b3fda8976e3b2602913f (diff) |
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>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/bsdfb/qbsdfbintegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/bsdfb/qbsdfbintegration.cpp b/src/plugins/platforms/bsdfb/qbsdfbintegration.cpp index e935d89c9f..9c25076c9c 100644 --- a/src/plugins/platforms/bsdfb/qbsdfbintegration.cpp +++ b/src/plugins/platforms/bsdfb/qbsdfbintegration.cpp @@ -63,7 +63,7 @@ QBsdFbIntegration::QBsdFbIntegration(const QStringList ¶mList) QBsdFbIntegration::~QBsdFbIntegration() { - destroyScreen(m_primaryScreen.data()); + destroyScreen(m_primaryScreen.take()); } void QBsdFbIntegration::initialize() |