From kde-core-devel Sun Feb 17 19:43:17 2008 From: Ralf Habacker Date: Sun, 17 Feb 2008 19:43:17 +0000 To: kde-core-devel Subject: Re: KMaiL: Can't setup D-Bus service. Probably already running. Message-Id: <47B88E55.4050704 () freenet ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=120327742317910 Thiago Macieira schrieb: > Ralf Habacker wrote: > >> I recognized a similar error with amarok starting the second time. I had >> to restart dbus-daemon to avoid this message. In that case i assume that >> the service KUniqueApplication registers in dbus wasn't unregistered at >> application shutdown. At least there is no unregisterService() call in >> whole kdelibs. May be that thiago can give some lights in this area. >> Anyway the related code is located in >> kdelibs/kdeui/kernel/kuniqueapplication.cpp line 146 >> > > The name unregisters automatically when the application exits. > Is this good progamming style not to unregister resources, which are registered before and to expect that this unregistering is outside the app ? In fact does this mean that creating and deleting a KUniqueApplication instance lets open a kind of "memory leak" in dbus, which should be fixed in KUniqueApplication and not in dbus. This belongs to Kapplication too. Ralf