From: Shane Kearns Date: Wed, 22 Feb 2012 21:23:48 +0000 (+0000) Subject: Windows - fix QWindowsSystemProxy global static race X-Git-Tag: qt-v5.0.0-alpha1~538 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cf8e487a5c546382daaa954c23d3926668b0a85;p=profile%2Fivi%2Fqtbase.git Windows - fix QWindowsSystemProxy global static race Loser of the race would try to delete an uninitialised pointer Task-number: QTBUG-15765 Change-Id: Ie184ee2306e102aa8fbad752ef09b95c3ede00c2 Reviewed-by: Thiago Macieira --- diff --git a/src/network/kernel/qnetworkproxy_win.cpp b/src/network/kernel/qnetworkproxy_win.cpp index 6969a9e..33ae4a6 100644 --- a/src/network/kernel/qnetworkproxy_win.cpp +++ b/src/network/kernel/qnetworkproxy_win.cpp @@ -256,7 +256,7 @@ public: Q_GLOBAL_STATIC(QWindowsSystemProxy, systemProxy) QWindowsSystemProxy::QWindowsSystemProxy() - : initialized(false), functional(false), isAutoConfig(false) + : hHttpSession(0), initialized(false), functional(false), isAutoConfig(false) { defaultResult << QNetworkProxy::NoProxy; }