From 85b25fc22176b574865813fa53f7eb2fcbdc89bf Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 22 Mar 2013 15:50:16 +0100 Subject: [PATCH] Remove racy setting of eventDispatcher to 0. This is inconsistent (e.g. the glib event dispatcher doesn't do this) and unnecessary (already done by QThreadPrivate::finish before deleting the event dispatcher, and by the QCoreApplication destructor). Change-Id: Ib98147953a5e71ec87aab0ec7ef5063bb7d80134 Reviewed-by: Olivier Goffart --- src/corelib/kernel/qeventdispatcher_unix.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/corelib/kernel/qeventdispatcher_unix.cpp b/src/corelib/kernel/qeventdispatcher_unix.cpp index 6ef8c5621e..69363bc3c9 100644 --- a/src/corelib/kernel/qeventdispatcher_unix.cpp +++ b/src/corelib/kernel/qeventdispatcher_unix.cpp @@ -320,8 +320,6 @@ QEventDispatcherUNIX::QEventDispatcherUNIX(QEventDispatcherUNIXPrivate &dd, QObj QEventDispatcherUNIX::~QEventDispatcherUNIX() { - Q_D(QEventDispatcherUNIX); - d->threadData->eventDispatcher = 0; } int QEventDispatcherUNIX::select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,