aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/kdemultimedia3
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2006-07-24 04:24:36 +0800
committerlofi <lofi@FreeBSD.org>2006-07-24 04:24:36 +0800
commitafd98ae0109a0b4449029b4e1948e38469196c2a (patch)
tree66f9fdd82c32098ab0223fba04c73d2f17f891f1 /multimedia/kdemultimedia3
parent557f59a71a5dab47dc7318a8253ab9cec6c4b4cb (diff)
downloadfreebsd-ports-gnome-afd98ae0109a0b4449029b4e1948e38469196c2a.tar.gz
freebsd-ports-gnome-afd98ae0109a0b4449029b4e1948e38469196c2a.tar.zst
freebsd-ports-gnome-afd98ae0109a0b4449029b4e1948e38469196c2a.zip
Fix KDE Bug 119504 (arts memory leak when playing ogg and mp3 files).
PR: ports/100700 Submitted by: Axel Gonzalez <loox@e-shell.net>
Diffstat (limited to 'multimedia/kdemultimedia3')
-rw-r--r--multimedia/kdemultimedia3/Makefile1
-rw-r--r--multimedia/kdemultimedia3/files/patch-akode_artsplugin_akodePlayObject_impl.cpp33
2 files changed, 34 insertions, 0 deletions
diff --git a/multimedia/kdemultimedia3/Makefile b/multimedia/kdemultimedia3/Makefile
index edcf681d6742..859e159c612b 100644
--- a/multimedia/kdemultimedia3/Makefile
+++ b/multimedia/kdemultimedia3/Makefile
@@ -8,6 +8,7 @@
PORTNAME= kdemultimedia
PORTVERSION= ${KDE_VERSION}
+PORTREVISION= 1
CATEGORIES= multimedia kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
diff --git a/multimedia/kdemultimedia3/files/patch-akode_artsplugin_akodePlayObject_impl.cpp b/multimedia/kdemultimedia3/files/patch-akode_artsplugin_akodePlayObject_impl.cpp
new file mode 100644
index 000000000000..cf6e40c60d1c
--- /dev/null
+++ b/multimedia/kdemultimedia3/files/patch-akode_artsplugin_akodePlayObject_impl.cpp
@@ -0,0 +1,33 @@
+--- akode_artsplugin/akodePlayObject_impl.cpp.orig Fri Jul 21 22:10:02 2006
++++ akode_artsplugin/akodePlayObject_impl.cpp Fri Jul 21 22:13:13 2006
+@@ -82,6 +82,8 @@
+
+ akodePlayObject_impl::~akodePlayObject_impl()
+ {
++ delete m_packetQueue;
++
+ unload();
+ }
+
+@@ -219,10 +221,9 @@
+ delete bufferedDecoder;
+ bufferedDecoder = 0;
+ }
+-#else
+- delete frameDecoder
+- frameDecoder = 0;
+ #endif
++ delete frameDecoder;
++ frameDecoder = 0;
+ decoder = 0;
+ if (buffer != inBuffer)
+ delete inBuffer;
+@@ -301,7 +302,7 @@
+ {
+ arts_debug("akode: readFrame");
+
+- if (!buffer || !decoder) return false;
++ if (!inBuffer || !decoder) return false;
+ if (m_bytebuffer) processQueue();
+ if(!decoder->readFrame(inBuffer)) {
+ if (decoder->eof()) { \ No newline at end of file