diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2014-01-31 17:42:17 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-06 18:04:07 +0100 |
commit | 6b3569c2cb761afe4eba626067b7c686eda866e6 (patch) | |
tree | 73cc41feeaaf074c1c035044bcea8a417d033ab5 /examples | |
parent | 54f66cc7a1e17155e90a1d3b5c33f627dbd0d50f (diff) | |
download | qtwebchannel-6b3569c2cb761afe4eba626067b7c686eda866e6.tar.gz |
Change destruction order to fix crash on close.
The transport interface should outlive the web channel or unregister
itself before being destroyed.
Change-Id: I77eaa26a4e1985d83cc3f19d07830cf0ca48ee7c
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/standalone/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/standalone/main.cpp b/examples/standalone/main.cpp index 836d324..47f7ea2 100644 --- a/examples/standalone/main.cpp +++ b/examples/standalone/main.cpp @@ -109,8 +109,8 @@ int main(int argc, char** argv) { QApplication app(argc, argv); - QWebChannel channel; QWebSocketTransport transport; + QWebChannel channel; channel.connectTo(&transport); Dialog dialog(&transport); |