From ee11f5d277e9df92e58c7c1c73c9a44359ce9b0f Mon Sep 17 00:00:00 2001 From: Thierry Bastian Date: Fri, 17 Jul 2009 11:02:37 +0200 Subject: Fixed another memory leak in Phonon on windows This would happen if you we didn't free the memory allocator when disconnecting the fake source from a sink (eg. video renderer) --- src/3rdparty/phonon/ds9/qpin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/3rdparty/phonon/ds9/qpin.cpp b/src/3rdparty/phonon/ds9/qpin.cpp index 3762a90..68a4ec0 100644 --- a/src/3rdparty/phonon/ds9/qpin.cpp +++ b/src/3rdparty/phonon/ds9/qpin.cpp @@ -303,9 +303,7 @@ namespace Phonon setConnected(0); setConnectedType(defaultMediaType); - if (m_direction == PINDIR_INPUT) { - setMemoryAllocator(0); - } + setMemoryAllocator(0); return S_OK; } -- cgit v0.12