mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Remove unnecessary type parameter from DELETE macro.
This commit is contained in:
parent
eb1cd9b01a
commit
13fa932a5a
6
common.h
6
common.h
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* See the README file for copyright information and how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: common.h,v 1.14 2007/10/22 16:22:11 rahrenbe Exp $
|
* $Id: common.h,v 1.15 2007/10/22 19:32:19 ajhseppa Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IPTV_COMMON_H
|
#ifndef __IPTV_COMMON_H
|
||||||
@ -44,10 +44,10 @@
|
|||||||
|
|
||||||
#define ERROR_IF(exp, errstr) ERROR_IF_FUNC(exp, errstr, , );
|
#define ERROR_IF(exp, errstr) ERROR_IF_FUNC(exp, errstr, , );
|
||||||
|
|
||||||
#define DELETE_POINTER(ptr, type) \
|
#define DELETE_POINTER(ptr) \
|
||||||
do { \
|
do { \
|
||||||
if (ptr) { \
|
if (ptr) { \
|
||||||
type *tmp = ptr; \
|
typeof(*ptr) *tmp = ptr; \
|
||||||
ptr = NULL; \
|
ptr = NULL; \
|
||||||
delete(tmp); \
|
delete(tmp); \
|
||||||
} \
|
} \
|
||||||
|
16
device.c
16
device.c
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* See the README file for copyright information and how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: device.c,v 1.73 2007/10/22 16:22:11 rahrenbe Exp $
|
* $Id: device.c,v 1.74 2007/10/22 19:32:19 ajhseppa Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -45,16 +45,16 @@ cIptvDevice::cIptvDevice(unsigned int Index)
|
|||||||
cIptvDevice::~cIptvDevice()
|
cIptvDevice::~cIptvDevice()
|
||||||
{
|
{
|
||||||
debug("cIptvDevice::~cIptvDevice(%d)\n", deviceIndex);
|
debug("cIptvDevice::~cIptvDevice(%d)\n", deviceIndex);
|
||||||
DELETE_POINTER(pIptvStreamer, cIptvStreamer);
|
DELETE_POINTER(pIptvStreamer);
|
||||||
DELETE_POINTER(pUdpProtocol, cIptvProtocolUdp);
|
DELETE_POINTER(pUdpProtocol);
|
||||||
DELETE_POINTER(pHttpProtocol, cIptvProtocolHttp);
|
DELETE_POINTER(pHttpProtocol);
|
||||||
DELETE_POINTER(pFileProtocol, cIptvProtocolFile);
|
DELETE_POINTER(pFileProtocol);
|
||||||
DELETE_POINTER(pExtProtocol, cIptvProtocolExt);
|
DELETE_POINTER(pExtProtocol);
|
||||||
DELETE_POINTER(tsBuffer, cRingBufferLinear);
|
DELETE_POINTER(tsBuffer);
|
||||||
// Detach and destroy sid filter
|
// Detach and destroy sid filter
|
||||||
if (pSidScanner) {
|
if (pSidScanner) {
|
||||||
Detach(pSidScanner);
|
Detach(pSidScanner);
|
||||||
DELETE_POINTER(pSidScanner, cSidScanner);
|
DELETE_POINTER(pSidScanner);
|
||||||
}
|
}
|
||||||
// Destroy all filters
|
// Destroy all filters
|
||||||
for (int i = 0; i < eMaxSecFilterCount; ++i)
|
for (int i = 0; i < eMaxSecFilterCount; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user