Prevent another crash in ~SocketApi #3118

Since the QLocalServer parent of the QLocalSockets gets destroyed
after the _listeners QList, onLostConnection might try to update
an already destroyed list.

Fix the issue by simply making sure that _localServer is destroyed
first.
This commit is contained in:
Jocelyn Turcotte 2015-04-17 12:30:54 +02:00
parent 6c73f25747
commit 155c965866

View file

@ -82,8 +82,8 @@ private:
Q_INVOKABLE void command_SHARE_MENU_TITLE(const QString& argument, QLocalSocket* socket);
QString buildRegisterPathMessage(const QString& path);
QLocalServer _localServer;
QList<QLocalSocket*> _listeners;
QLocalServer _localServer;
c_strlist_t *_excludes;
QHash<Folder*, SqlQuery*> _dbQueries;
QHash<Folder*, SqlDatabase*> _openDbs;