Fix UBSAN warning when downcasting partially destroyed object
This patch fixes the runtime warning cought by UBSAN:
src/webchannel/qwebchannel.cpp:84:96: runtime error: downcast of address 0x6030001b1570 which does not point to an object of type 'QWebChannelAbst
Change-Id: I9c78f94bc97961ef69b71ecca8a9301d81feaf3a
Reviewed-by: Kai Dohmen <psykai1993@googlemail.com>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
| commit | 65870525c01915fadaa322599b6f9064995d7762 |
| parent | f3b296ff5c6f0c7478dfd705c69e530d24eece95 |
| author | Milian Wolff <milian.wolff@kdab.com> |
| committer | Frederik Gladhorn <frederik.gladhorn@qt.io> |
| commit time | Thu, 25 Oct 2018 13:30:30 +0000 |