projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better solution to add possibility to delete eSocketNotifiers,
[vuplus_dvbapp]
/
lib
/
driver
/
avswitch.cpp
diff --git
a/lib/driver/avswitch.cpp
b/lib/driver/avswitch.cpp
index
1f2765e
..
dbfebf5
100644
(file)
--- a/
lib/driver/avswitch.cpp
+++ b/
lib/driver/avswitch.cpp
@@
-24,7
+24,7
@@
eAVSwitch::eAVSwitch()
}
else
{
}
else
{
- m_fp_notifier =
new eSocketNotifier
(eApp, m_fp_fd, eSocketNotifier::Read|POLLERR);
+ m_fp_notifier =
eSocketNotifier::create
(eApp, m_fp_fd, eSocketNotifier::Read|POLLERR);
CONNECT(m_fp_notifier->activated, eAVSwitch::fp_event);
}
}
CONNECT(m_fp_notifier->activated, eAVSwitch::fp_event);
}
}
@@
-93,8
+93,6
@@
eAVSwitch::~eAVSwitch()
{
if ( m_fp_fd >= 0 )
close(m_fp_fd);
{
if ( m_fp_fd >= 0 )
close(m_fp_fd);
- if (m_fp_notifier)
- delete m_fp_notifier;
}
eAVSwitch *eAVSwitch::getInstance()
}
eAVSwitch *eAVSwitch::getInstance()