Skip to content

Commit

Permalink
Fixed|libshell: Crash when shutting down app
Browse files Browse the repository at this point in the history
If the link was open, a disconnection signal was emitted during
destruction when the application had been partially destroyed.
  • Loading branch information
skyjake committed Mar 15, 2013
1 parent 5b6068a commit bf11978
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/libshell/src/abstractlink.cpp
Expand Up @@ -41,6 +41,12 @@ DENG2_PIMPL(AbstractLink)
: Base(i),
status(Disconnected),
connectedAt(Time::invalidTime()) {}

~Instance()
{
// Disconnection is implied since the link is being destroyed.
QObject::disconnect(socket.get(), SIGNAL(disconnected()), thisPublic, SLOT(socketDisconnected()));
}
};

AbstractLink::AbstractLink() : d(new Instance(this))
Expand Down

0 comments on commit bf11978

Please sign in to comment.