core/outputconfiguration: use std::weak_ptr for storing the mode
Otherwise an unplugged output can cause use-after-free problems on OutputChangeSet
destruction
Otherwise an unplugged output can cause use-after-free problems on OutputChangeSet
destruction