[mythtv-commits] Ticket #140: Patch for a memory leak in lcddevice.cpp

MythTV mythtv at cvs.mythtv.org
Thu Jul 21 01:50:29 EDT 2005


#140: Patch for a memory leak in lcddevice.cpp
---------------------+------------------------------------------------------
       Id:  140      |      Status:  new                     
Component:  mythtv   |    Modified:  Thu Jul 21 05:50:28 2005
 Severity:  low      |   Milestone:                          
 Priority:  trivial  |     Version:  head                    
    Owner:  ijr      |    Reporter:  eskil <myth at eskil.org>  
---------------------+------------------------------------------------------
 While working on something else and painstakingly valgrinding
 mythfrontend, I encountered ;

 ==10470== 2688 bytes in 112 blocks are definitely lost in loss record 650
 of 730
 ==10470==    at 0x1B90506F: operator new(unsigned)
 (vg_replace_malloc.c:133)
 ==10470==    by 0x1C427A0C: LCD::startMenu(QPtrList<LCDMenuItem>*,
 QString, bool) (lcddevice.cpp:1013)
 ==10470==    by 0x1C42A781: LCD::switchToMenu(QPtrList<LCDMenuItem>*,
 QString, bool)
 (lcddevice.cpp:1606)
 ==10470==    by 0x1C48380F: ThemedMenuPrivate::updateLCD()
 (themedmenu.cpp:1622)

 The attached patch basically sets autodelete on in the ptrlist, fixes the
 leak.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/140>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list