mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Fixed a mem leak and re-ordered pointer deletions.
This commit is contained in:
parent
43326bb4ea
commit
412af81271
18
device.c
18
device.c
@ -58,18 +58,18 @@ cIptvDevice::cIptvDevice(unsigned int indexP)
|
|||||||
cIptvDevice::~cIptvDevice()
|
cIptvDevice::~cIptvDevice()
|
||||||
{
|
{
|
||||||
debug("cIptvDevice::%s(%d)", __FUNCTION__, deviceIndexM);
|
debug("cIptvDevice::%s(%d)", __FUNCTION__, deviceIndexM);
|
||||||
DELETE_POINTER(pIptvStreamerM);
|
|
||||||
DELETE_POINTER(pUdpProtocolM);
|
|
||||||
DELETE_POINTER(pCurlProtocolM);
|
|
||||||
DELETE_POINTER(pHttpProtocolM);
|
|
||||||
DELETE_POINTER(pFileProtocolM);
|
|
||||||
DELETE_POINTER(pExtProtocolM);
|
|
||||||
DELETE_POINTER(tsBufferM);
|
|
||||||
DELETE_POINTER(pPidScannerM);
|
|
||||||
DELETE_POINTER(pSidScannerM);
|
|
||||||
// Stop section handler of iptv device
|
// Stop section handler of iptv device
|
||||||
StopSectionHandler();
|
StopSectionHandler();
|
||||||
DELETE_POINTER(pIptvSectionM);
|
DELETE_POINTER(pIptvSectionM);
|
||||||
|
DELETE_POINTER(pSidScannerM);
|
||||||
|
DELETE_POINTER(pPidScannerM);
|
||||||
|
DELETE_POINTER(pIptvStreamerM);
|
||||||
|
DELETE_POINTER(pExtProtocolM);
|
||||||
|
DELETE_POINTER(pFileProtocolM);
|
||||||
|
DELETE_POINTER(pHttpProtocolM);
|
||||||
|
DELETE_POINTER(pCurlProtocolM);
|
||||||
|
DELETE_POINTER(pUdpProtocolM);
|
||||||
|
DELETE_POINTER(tsBufferM);
|
||||||
// Close dvr fifo
|
// Close dvr fifo
|
||||||
if (dvrFdM >= 0) {
|
if (dvrFdM >= 0) {
|
||||||
int fd = dvrFdM;
|
int fd = dvrFdM;
|
||||||
|
@ -242,6 +242,8 @@ cIptvSectionFilterHandler::~cIptvSectionFilterHandler()
|
|||||||
if (Running())
|
if (Running())
|
||||||
Cancel(3);
|
Cancel(3);
|
||||||
|
|
||||||
|
DELETE_POINTER(ringBufferM);
|
||||||
|
|
||||||
// Destroy all filters
|
// Destroy all filters
|
||||||
cMutexLock MutexLock(&mutexM);
|
cMutexLock MutexLock(&mutexM);
|
||||||
for (int i = 0; i < eMaxSecFilterCount; ++i)
|
for (int i = 0; i < eMaxSecFilterCount; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user