[mythtv] [patch] EIT memory leak

Daniel Kristjansson danielk at cuymedia.net
Fri Oct 7 18:23:11 UTC 2005


On Fri, 2005-10-07 at 18:44 +0100, Stuart Auchterlonie wrote:
> Hello All,
> Here's a preliminary patch to fix the EIT memory leaks.
> It DOES NOT fix all of them, but it does fix the major ones.
> I'm putting this out there so people can leave things running
> happilly overnight without consuming too much memory, and because
> I won't get a chance to look at it for a few days.
Thanks for looking at this.

However...
Index: mythtv/libs/libmythtv/eithelper.cpp
===================================================================
--- mythtv.orig/libs/libmythtv/eithelper.cpp    2005-10-04
00:48:12.000000000 +0100
+++ mythtv/libs/libmythtv/eithelper.cpp 2005-10-06 23:17:00.000000000
+0100
@@ -27,6 +27,7 @@
     eitList_lock.lock();
     eitList.push_back(events);
     eitList_lock.unlock();
+    eventList->clear();
 }

I think this one should be done by the caller of HandleEIT()...

-- Daniel



More information about the mythtv-dev mailing list