Skip to content

Commit

Permalink
netinterface.cpp: Fix assert in shutdown by calling the NetTracker co…
Browse files Browse the repository at this point in the history
…nstructor from the right thread

git-svn-id: http://delta.affinix.com/svn/trunk/iris@527 ac7a513c-5e3a-0410-af42-968c3ac6e7dc
  • Loading branch information
Martin H authored and Martin H committed Apr 10, 2009
1 parent 7e9a79c commit 7a6b9e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/irisnet/corelib/netinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class NetTracker : public QObject {
}

~NetTracker() {
QMutexLocker locker(&m);
delete c;
}

Expand Down Expand Up @@ -135,7 +136,6 @@ class NetTrackerThread : public QThread {

~NetTrackerThread() {
// locked from caller
delete nettracker;
}


Expand Down Expand Up @@ -166,6 +166,8 @@ class NetTrackerThread : public QThread {
startCond.wakeOne(); // we're ready to serve.
}
exec();
delete nettracker;
nettracker = 0;
}

private:
Expand Down

0 comments on commit 7a6b9e7

Please sign in to comment.