1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Fix KDE Bug 119504 (arts memory leak when playing ogg and mp3 files).

PR:		ports/100700
Submitted by:	Axel Gonzalez <loox@e-shell.net>
This commit is contained in:
Michael Nottebrock 2006-07-23 20:24:36 +00:00
parent a9c07b07fa
commit 042bf062d8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168577
4 changed files with 68 additions and 0 deletions

View File

@ -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

View File

@ -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()) {

View File

@ -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

View File

@ -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()) {