X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5..6bfb37ae9c010c866900239281d345efcdd611bd:/lib/service/service.cpp diff --git a/lib/service/service.cpp b/lib/service/service.cpp index 99199aa9..6141516f 100644 --- a/lib/service/service.cpp +++ b/lib/service/service.cpp @@ -32,16 +32,22 @@ eString eServiceReference::toString() const eServiceCenter *eServiceCenter::instance; -eServiceCenter::eServiceCenter() +eServiceCenter::eServiceCenter(): ref(0) { if (!instance) + { + eDebug("settings instance."); instance = this; + } } eServiceCenter::~eServiceCenter() { if (instance == this) + { + eDebug("clear instance"); instance = 0; + } } DEFINE_REF(eServiceCenter); @@ -91,4 +97,4 @@ RESULT eServiceCenter::removeServiceFactory(int id) return 0; } -eAutoInitP0 init_eServiceCenter(eAutoInitNumbers::service, "eServiceCenter"); +eAutoInitPtr init_eServiceCenter(eAutoInitNumbers::service, "eServiceCenter");