mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Fix crash when pausing mirall.
This commit is contained in:
parent
bfbec24f43
commit
e5af8e87b3
1 changed files with 2 additions and 4 deletions
|
@ -111,6 +111,7 @@ void ownCloudFolder::startSync(const QStringList &pathList)
|
|||
qCritical() << "* ERROR csync is still running and new sync requested.";
|
||||
return;
|
||||
}
|
||||
|
||||
delete _csync;
|
||||
delete _thread;
|
||||
_errors.clear();
|
||||
|
@ -209,10 +210,7 @@ void ownCloudFolder::slotTerminateSync()
|
|||
if( _thread ) {
|
||||
_thread->terminate();
|
||||
_thread->wait();
|
||||
// TODO: crashes on win, leak for now, fix properly after 1.1.0
|
||||
#ifndef Q_OS_WIN
|
||||
delete _csync;
|
||||
#endif
|
||||
_csync->deleteLater();
|
||||
delete _thread;
|
||||
_csync = 0;
|
||||
_thread = 0;
|
||||
|
|
Loading…
Reference in a new issue