aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/base/ebase.h2
-rw-r--r--lib/base/object.h1
-rw-r--r--lib/dvb/dvbtime.cpp7
-rw-r--r--lib/dvb/dvbtime.h2
-rw-r--r--lib/dvb/pmt.cpp2
-rw-r--r--lib/dvb/pmt.h2
-rw-r--r--lib/gdi/font.cpp1
7 files changed, 4 insertions, 13 deletions
diff --git a/lib/base/ebase.h b/lib/base/ebase.h
index c86c177d..84845a95 100644
--- a/lib/base/ebase.h
+++ b/lib/base/ebase.h
@@ -155,7 +155,6 @@ private:
int requested; // requested events (POLLIN, ...)
void activate(int what) { /*emit*/ activated(what); }
eSocketNotifier(eMainloop *context, int fd, int req, bool startnow);
- void operator delete(void *pmem) { ::operator delete(pmem); }
public:
/**
* \brief Constructs a eSocketNotifier.
@@ -281,7 +280,6 @@ class eTimer: iObject
void activate();
eTimer(eMainloop *context): context(*context), bActive(false) { }
- void operator delete(void *pmem) { ::operator delete(pmem); }
public:
/**
* \brief Constructs a timer.
diff --git a/lib/base/object.h b/lib/base/object.h
index f0e0e9a5..a3268d4f 100644
--- a/lib/base/object.h
+++ b/lib/base/object.h
@@ -17,6 +17,7 @@ private:
/* we don't allow the default operator here, as it would break the refcount. */
void operator=(const iObject &);
protected:
+ void operator delete(void *p) { ::operator delete(p); }
virtual ~iObject() { }
#ifdef SWIG
virtual void AddRef()=0;
diff --git a/lib/dvb/dvbtime.cpp b/lib/dvb/dvbtime.cpp
index 4c5911c9..83ca3355 100644
--- a/lib/dvb/dvbtime.cpp
+++ b/lib/dvb/dvbtime.cpp
@@ -169,8 +169,6 @@ eDVBLocalTimeHandler::eDVBLocalTimeHandler()
eDVBLocalTimeHandler::~eDVBLocalTimeHandler()
{
instance=0;
- for (std::map<iDVBChannel*, channel_data>::iterator it=m_knownChannels.begin(); it != m_knownChannels.end(); ++it)
- delete it->second.tdt;
if (ready())
{
eDebug("set RTC to previous valid time");
@@ -396,10 +394,8 @@ void eDVBLocalTimeHandler::updateTime( time_t tp_time, eDVBChannel *chan, int up
m_knownChannels.find(chan);
if ( it != m_knownChannels.end() )
{
- TDT *prev_tdt = it->second.tdt;
- it->second.tdt = new TDT(chan, prev_tdt->getUpdateCount());
+ it->second.tdt = new TDT(chan, it->second.tdt->getUpdateCount());
it->second.tdt->startTimer(60*60*1000); // restart TDT for this transponder in 60min
- delete prev_tdt;
}
}
}
@@ -437,7 +433,6 @@ void eDVBLocalTimeHandler::DVBChannelStateChanged(iDVBChannel *chan)
break;
case iDVBChannel::state_release:
eDebug("[eDVBLocalTimerHandler] remove channel %p", chan);
- delete it->second.tdt;
m_knownChannels.erase(it);
break;
default: // ignore all other events
diff --git a/lib/dvb/dvbtime.h b/lib/dvb/dvbtime.h
index efb85962..f403ffd4 100644
--- a/lib/dvb/dvbtime.h
+++ b/lib/dvb/dvbtime.h
@@ -49,7 +49,7 @@ class eDVBLocalTimeHandler: public Object
DECLARE_REF(eDVBLocalTimeHandler);
struct channel_data
{
- TDT *tdt;
+ ePtr<TDT> tdt;
ePtr<eDVBChannel> channel;
ePtr<eConnection> m_stateChangedConn;
int m_prevChannelState;
diff --git a/lib/dvb/pmt.cpp b/lib/dvb/pmt.cpp
index 80fbcab3..6082bf4a 100644
--- a/lib/dvb/pmt.cpp
+++ b/lib/dvb/pmt.cpp
@@ -605,7 +605,6 @@ int eDVBServicePMTHandler::tune(eServiceReferenceDVB &ref, int use_decode_demux,
if (ref.path.empty())
{
- delete m_dvb_scan;
m_dvb_scan = new eDVBScan(m_channel, true, false);
m_dvb_scan->connectEvent(slot(*this, &eDVBServicePMTHandler::SDTScanEvent), m_scan_event_connection);
}
@@ -631,7 +630,6 @@ int eDVBServicePMTHandler::tune(eServiceReferenceDVB &ref, int use_decode_demux,
void eDVBServicePMTHandler::free()
{
m_dvb_scan = 0;
- delete m_dvb_scan;
if (m_ca_servicePtr)
{
diff --git a/lib/dvb/pmt.h b/lib/dvb/pmt.h
index d3a7faa7..107b071a 100644
--- a/lib/dvb/pmt.h
+++ b/lib/dvb/pmt.h
@@ -76,7 +76,7 @@ class eDVBServicePMTHandler: public Object
int m_last_channel_state;
eDVBCAService *m_ca_servicePtr;
- eDVBScan *m_dvb_scan; // for sdt scan
+ ePtr<eDVBScan> m_dvb_scan; // for sdt scan
eAUTable<eTable<ProgramMapSection> > m_PMT;
eAUTable<eTable<ProgramAssociationSection> > m_PAT;
diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp
index 09154de0..450269f0 100644
--- a/lib/gdi/font.cpp
+++ b/lib/gdi/font.cpp
@@ -212,7 +212,6 @@ float fontRenderClass::getLineHeight(const gFont& font)
if (FTC_Manager_Lookup_Size(cacheManager, &fnt->font.font, &current_face, &fnt->size)<0)
#endif
{
- delete fnt;
eDebug("FTC_Manager_Lookup_Size failed!");
return 0;
}