diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-03-15 14:07:43 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-03-16 07:59:21 +0000 |
commit | ce5b33c350cb7aa4a649088d85e48be08b632b69 (patch) | |
tree | ca638cc4b44923650cef76125268eb47f66a364e /src/quicktemplates2 | |
parent | a8766caf09132bc08b7bc7eb3200607e2175d89d (diff) |
Avoid crashes when the qquickcontrols2 plugin gets unloaded
The styleSpec() can be a nullptr in some cases, so test for that
before calling reset() on it.
Fixes a crash on exit in the qqmlextensionsplugin autotest of
qtdeclarative if qtquickcontrols2 has been compiled.
Change-Id: Ic43cbec57b36f9a0181d3b0c50d4a19236b5870e
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/quicktemplates2')
0 files changed, 0 insertions, 0 deletions