diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2016-05-31 14:15:17 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@theqtcompany.com> | 2016-05-31 12:33:55 +0000 |
commit | 3af17048cbd64fff17eedc340571e7555ea9790a (patch) | |
tree | ae6d3cf56023a731169ea19a83daeaff2f943502 /examples/webenginewidgets/simplebrowser/main.cpp | |
parent | 9d77fecb32d6e5f25481fcd58230cb4e4b40a294 (diff) | |
download | qtwebengine-3af17048cbd64fff17eedc340571e7555ea9790a.tar.gz |
Fix crash related to audioMuted and recentlyAudible properties in qml.
If the qml properties audioMuted or recentlyAudible are accessed / set
on a WebEngineView on application startup, the application will crash
due to accessing a null pointer (the web contents adapter is not
allocated yet).
Add guards against null pointer access, to prevent the crash.
Change-Id: I939be9afa093d1889024b2ff9308deb88b9316bf
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'examples/webenginewidgets/simplebrowser/main.cpp')
0 files changed, 0 insertions, 0 deletions