[Pkg-owncloud-commits] [owncloud-client] 47/498: Fix crash on exit by not making Account parent of AccountState.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 11927d625d154aec9f7f2228f61f16053631ade9
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Thu Apr 23 15:59:32 2015 +0200

    Fix crash on exit by not making Account parent of AccountState.
---
 src/gui/accountstate.cpp | 3 ++-
 src/libsync/account.cpp  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp
index 8904b2c..3b6aced 100644
--- a/src/gui/accountstate.cpp
+++ b/src/gui/accountstate.cpp
@@ -22,7 +22,7 @@
 namespace OCC {
 
 AccountState::AccountState(AccountPtr account)
-    : QObject(account.data())
+    : QObject()
     , _account(account)
     , _quotaInfo(0)
     , _state(AccountState::Disconnected)
@@ -41,6 +41,7 @@ AccountState::AccountState(AccountPtr account)
 
 AccountState::~AccountState()
 {
+    qDebug() << "Account state for account" << account()->displayName() << "deleted";
 }
 
 AccountPtr AccountState::account() const
diff --git a/src/libsync/account.cpp b/src/libsync/account.cpp
index e6dd5c2..d0a4d22 100644
--- a/src/libsync/account.cpp
+++ b/src/libsync/account.cpp
@@ -58,6 +58,7 @@ AccountPtr Account::create()
 
 Account::~Account()
 {
+    qDebug() << "Account" << displayName() << "deleted";
     delete _credentials;
     delete _am;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list