Leak fixes
This fixes a couple of leaks in the daemon. They're not super critical since they only trigger on shutdown thus not leaking e.g. by every DBus invocation but it's better to have them fixed.
As usual review is appreciated so this doesn't introduce more issues than it fixes.
Edited by Guido Gunther