Destroy the registry when WaylandConfig gets deleted
A pointer to WaylandConfig gets passed to wl_registry_add_listener but this is global and can trigger also when WaylandConfig has just been deleted and wl_registry is leaking
Edited by Marco Martin