Logger: Use QScopedPointer to store log cache instance

This makes valgrind stop complaining about the log strings leaking.
Makes spotting actual leaks easier.