core: move destruction of old time event sources to manager_setup_time_change()
authorLennart Poettering <lennart@poettering.net>
Mon, 28 May 2018 19:32:03 +0000 (21:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Jun 2018 08:53:56 +0000 (10:53 +0200)
commit7feedd18fa57ba42426dfffd702dfc78ea0c6d7a
tree9d2bf175734a7a076898b6f6a81373c6a652ba32
parent1eb54dc6457a5009e04f214e0d24ca00c782c5a5
core: move destruction of old time event sources to manager_setup_time_change()

It's a bit prettier that day as the function won't silently overwrite
any possibly pre-initialized field, and destroy it right before we
allocate a new event source.
src/core/manager.c