diff options
| -rw-r--r-- | include/connection.h | 3 | ||||
| -rw-r--r-- | lib/dvb/demux.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/connection.h b/include/connection.h index 3ccaec19..8ca75cb9 100644 --- a/include/connection.h +++ b/include/connection.h @@ -7,10 +7,11 @@ class eConnection: public virtual iObject, public Connection { int ref; + ePtr<iObject> m_owner; public: DEFINE_REF(eConnection); public: - eConnection(const Connection &conn): Connection(conn), ref(0) { }; + eConnection(iObject *owner, const Connection &conn): Connection(conn), ref(0), m_owner(owner) { }; virtual ~eConnection() { disconnect(); } }; diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp index e1d8bbaf..be9ac937 100644 --- a/lib/dvb/demux.cpp +++ b/lib/dvb/demux.cpp @@ -126,6 +126,6 @@ RESULT eDVBSectionReader::stop() RESULT eDVBSectionReader::connectRead(const Slot1<void,const __u8*> &r, ePtr<eConnection> &conn) { - conn = new eConnection(read.connect(r)); + conn = new eConnection(this, read.connect(r)); return 0; } |
