telepathy-qt: Telepathy/IODevice: Fixed memory leak.
Alexandr Akulich
kaffeine at kemper.freedesktop.org
Sun Jun 12 11:22:29 UTC 2016
Module: telepathy-qt
Branch: master
Commit: 7dfa899ce592d80910c1d5b0c9864bec4d36f081
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=7dfa899ce592d80910c1d5b0c9864bec4d36f081
Author: Alexandr Akulich <akulichalexander at gmail.com>
Date: Fri Jun 10 20:17:43 2016 +0500
Telepathy/IODevice: Fixed memory leak.
---
TelepathyQt/io-device.cpp | 5 +++++
TelepathyQt/io-device.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/TelepathyQt/io-device.cpp b/TelepathyQt/io-device.cpp
index 120dcbf..2cd516d 100644
--- a/TelepathyQt/io-device.cpp
+++ b/TelepathyQt/io-device.cpp
@@ -54,6 +54,11 @@ IODevice::IODevice(QObject *parent) :
{
}
+IODevice::~IODevice()
+{
+ delete mPriv;
+}
+
qint64 IODevice::bytesAvailable() const
{
return QIODevice::bytesAvailable() + mPriv->data.size();
diff --git a/TelepathyQt/io-device.h b/TelepathyQt/io-device.h
index 5231b77..d629973 100644
--- a/TelepathyQt/io-device.h
+++ b/TelepathyQt/io-device.h
@@ -39,6 +39,7 @@ class TP_QT_EXPORT IODevice : public QIODevice
Q_OBJECT
public:
explicit IODevice(QObject *parent = 0);
+ ~IODevice();
bool isSequential() const Q_DECL_OVERRIDE;
qint64 bytesAvailable() const Q_DECL_OVERRIDE;
More information about the telepathy-commits
mailing list