[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:22:20 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=87ef0cd

The following commit has been merged in the master branch:
commit 87ef0cdf4bb2a2bfe4aa317e4e1a279bee4ecf16
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Sun Aug 5 23:57:34 2012 +0100

    Fix memory leak in format filter
---
 filters/formatting/format-filter.cpp | 5 +++++
 filters/formatting/format-filter.h   | 1 +
 2 files changed, 6 insertions(+)

diff --git a/filters/formatting/format-filter.cpp b/filters/formatting/format-filter.cpp
index 7e1e424..75157fa 100644
--- a/filters/formatting/format-filter.cpp
+++ b/filters/formatting/format-filter.cpp
@@ -38,6 +38,11 @@ FormatFilter::FormatFilter (QObject* parent, const QVariantList&) :
     addTag("-", 's');
 }
 
+FormatFilter::~FormatFilter()
+{
+    delete d;
+}
+
 void FormatFilter::filterMessage (Message& message)
 {
     Q_FOREACH(FormatTag tag, d->tags) {
diff --git a/filters/formatting/format-filter.h b/filters/formatting/format-filter.h
index f3d8387..4980aff 100644
--- a/filters/formatting/format-filter.h
+++ b/filters/formatting/format-filter.h
@@ -26,6 +26,7 @@ Q_OBJECT
 
 public:
     FormatFilter (QObject* parent, const QVariantList &);
+    virtual ~FormatFilter();
     virtual void filterMessage (Message& message);
 
 private:

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list