[mythtv] Memory leaks in SVN

Stuart Auchterlonie stuarta at squashedfrog.net
Wed Apr 12 08:33:16 UTC 2006


On Wed, Apr 12, 2006 at 08:01:32AM +0100, Ed Wildgoose wrote:
> 
> Thanks for the tip.  It's looking like it might in part be the preview 
> stream which is leaking.  As I scroll up and down the recorded programs 
> page memory is leaking.  Not sure yet if this explains all the leak when 
> playing and quiting watching a program though.

There is a problem with the preview video. IIRC it leaks threads on a fast
CPU. I'm running a local patch that disables that but still see the leaks
in the frontend. I'll attach my patch for reference

Stuart

-------------- next part --------------
Index: mythtv/programs/mythfrontend/playbackbox.cpp
===================================================================
--- mythtv.orig/programs/mythfrontend/playbackbox.cpp	2006-04-10 16:43:49.000000000 +0100
+++ mythtv/programs/mythfrontend/playbackbox.cpp	2006-04-10 16:45:12.000000000 +0100
@@ -771,9 +771,11 @@
          (previewVideoState == kStarting) || 
          (previewVideoState == kChanging)))
     {
+/*
         QPixmap temp = getPixmap(curitem);
         if (temp.width() > 0)
             p->drawPixmap(drawVideoBounds.x(), drawVideoBounds.y(), temp);
+*/
     }
 
     /* keep calling killPlayer() to handle nvp cleanup */


More information about the mythtv-dev mailing list