[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9
Maximiliano Curia
maxy at moszumanska.debian.org
Mon May 9 09:06:53 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=dda7bc5
The following commit has been merged in the master branch:
commit dda7bc52352898da6881ed397467db66ea5b844a
Author: Dan Vrátil <dvratil at redhat.com>
Date: Tue Jun 4 14:55:46 2013 +0200
Fix memory leaks
---
KTp/Models/accounts-list-model.cpp | 1 +
KTp/Models/accounts-tree-proxy-model.cpp | 4 ++++
KTp/Models/accounts-tree-proxy-model.h | 1 +
KTp/Widgets/accounts-combo-box.cpp | 5 +++++
KTp/Widgets/accounts-combo-box.h | 1 +
KTp/circular-countdown.cpp | 1 +
6 files changed, 13 insertions(+)
diff --git a/KTp/Models/accounts-list-model.cpp b/KTp/Models/accounts-list-model.cpp
index c4fb917..f016ece 100644
--- a/KTp/Models/accounts-list-model.cpp
+++ b/KTp/Models/accounts-list-model.cpp
@@ -48,6 +48,7 @@ KTp::AccountsListModel::AccountsListModel(QObject *parent)
KTp::AccountsListModel::~AccountsListModel()
{
+ delete d;
}
void KTp::AccountsListModel::setAccountSet(const Tp::AccountSetPtr &accountSet)
diff --git a/KTp/Models/accounts-tree-proxy-model.cpp b/KTp/Models/accounts-tree-proxy-model.cpp
index 0ffbb0e..c600294 100644
--- a/KTp/Models/accounts-tree-proxy-model.cpp
+++ b/KTp/Models/accounts-tree-proxy-model.cpp
@@ -46,7 +46,11 @@ KTp::AccountsTreeProxyModel::AccountsTreeProxyModel(QAbstractItemModel *sourceMo
Q_FOREACH(const Tp::AccountPtr &account, d->accountSet->accounts()) {
onAccountAdded(account);
}
+}
+KTp::AccountsTreeProxyModel::~AccountsTreeProxyModel()
+{
+ delete d;
}
QSet<QString> KTp::AccountsTreeProxyModel::groupsForIndex(const QModelIndex &sourceIndex) const
diff --git a/KTp/Models/accounts-tree-proxy-model.h b/KTp/Models/accounts-tree-proxy-model.h
index 620b860..c831605 100644
--- a/KTp/Models/accounts-tree-proxy-model.h
+++ b/KTp/Models/accounts-tree-proxy-model.h
@@ -32,6 +32,7 @@ class KTP_EXPORT AccountsTreeProxyModel : public KTp::AbstractGroupingProxyModel
Q_OBJECT
public:
AccountsTreeProxyModel(QAbstractItemModel *sourceModel, const Tp::AccountManagerPtr &accountManager);
+ virtual ~AccountsTreeProxyModel();
virtual QSet<QString> groupsForIndex(const QModelIndex &sourceIndex) const;
virtual QVariant dataForGroup(const QString &group, int role) const;
diff --git a/KTp/Widgets/accounts-combo-box.cpp b/KTp/Widgets/accounts-combo-box.cpp
index 903b034..27e6b4b 100644
--- a/KTp/Widgets/accounts-combo-box.cpp
+++ b/KTp/Widgets/accounts-combo-box.cpp
@@ -39,6 +39,11 @@ KTp::AccountsComboBox::AccountsComboBox(QWidget *parent) :
setModel(d->model);
}
+KTp::AccountsComboBox::~AccountsComboBox()
+{
+ delete d;
+}
+
void KTp::AccountsComboBox::setAccountSet(const Tp::AccountSetPtr &accountSet)
{
d->model->setAccountSet(accountSet);
diff --git a/KTp/Widgets/accounts-combo-box.h b/KTp/Widgets/accounts-combo-box.h
index 068dfdf..3d32e9c 100644
--- a/KTp/Widgets/accounts-combo-box.h
+++ b/KTp/Widgets/accounts-combo-box.h
@@ -33,6 +33,7 @@ class KTP_EXPORT AccountsComboBox : public QComboBox
Q_DISABLE_COPY(AccountsComboBox)
public:
explicit AccountsComboBox(QWidget *parent = 0);
+ virtual ~AccountsComboBox();
public:
/** A set of accounts to show.
diff --git a/KTp/circular-countdown.cpp b/KTp/circular-countdown.cpp
index 4cbb896..c7a4ffa 100644
--- a/KTp/circular-countdown.cpp
+++ b/KTp/circular-countdown.cpp
@@ -63,6 +63,7 @@ CircularCountdown::CircularCountdown(int msec, QWidget *parent)
CircularCountdown::~CircularCountdown()
{
+ delete d;
}
void CircularCountdown::paintEvent(QPaintEvent *event) {
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list