Ticket #4793: mythtv_tvchain_pginfo_leak2.diff
File mythtv_tvchain_pginfo_leak2.diff, 869 bytes (added by , 16 years ago) |
---|
-
libs/libmythtv/livetvchain.cpp
401 401 return NULL; 402 402 403 403 // Skip dummy recordings, if possible. 404 if (entry.cardtype == "DUMMY") 404 if (entry.cardtype == "DUMMY" && 405 m_switchid != m_curpos) 405 406 { 406 407 if (m_switchid > m_curpos && m_switchid + 1 < (int)m_chain.count()) 407 408 m_switchid++; … … 409 410 m_switchid--; 410 411 411 412 GetEntryAt(m_switchid, entry); 413 delete pginfo; 412 414 pginfo = EntryToProgram(entry); 415 416 if (!pginfo) 417 return NULL; 413 418 } 414 419 415 if (!pginfo)416 return NULL;417 418 420 discont = true; 419 421 if (m_curpos == m_switchid - 1) 420 422 discont = entry.discontinuity;