From 3b08d0e43f371af22d1a594eae6ae51f24c0d9ce Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 28 Oct 2016 19:30:55 +0200 Subject: [client] Fix use-after-free by adding missing signal-slot-connection --- src/client/clientapp/clientapp.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/clientapp/clientapp.cpp') diff --git a/src/client/clientapp/clientapp.cpp b/src/client/clientapp/clientapp.cpp index d3f0eb4..911f223 100644 --- a/src/client/clientapp/clientapp.cpp +++ b/src/client/clientapp/clientapp.cpp @@ -112,6 +112,7 @@ void ClientApp::readIsManagerPc() void ClientApp::connected(ServerConnection* connection) { _connection = connection; + connect(connection, SIGNAL(disconnected(ServerConnection*)), this, SLOT(disconnected(ServerConnection*))); } void ClientApp::disconnected(ServerConnection* connection) -- cgit v1.2.3-55-g7522