From: Jocelyn Turcotte Date: Fri, 17 Apr 2015 10:30:54 +0000 (+0200) Subject: Prevent another crash in ~SocketApi #3118 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1803^2~178 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=155c96586648588ef73edc91c4198d6e3738a2f9;p=nextcloud-desktop.git 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. --- diff --git a/src/gui/socketapi.h b/src/gui/socketapi.h index 3be14f746..97f7b9ad1 100644 --- a/src/gui/socketapi.h +++ b/src/gui/socketapi.h @@ -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 _listeners; + QLocalServer _localServer; c_strlist_t *_excludes; QHash _dbQueries; QHash _openDbs;