mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 07:30:10 +01:00
It's anyway a singleton that is still referenced by other components. So unrefing it in the mainloop does not actually release any memory. However, the GDBusConnection singleton is fundamental for the run of the program. Keep it accessible in the global variables. Note that soon I will drop the GDBusInterfaceSkeleton and only operate on the GDBusConnection. Then it makes more sense to keep it around. Note that usually we want to keep the amount of global state small. But this connection is anyway a singleton (that we already implicitly use). So, it doesn't change the amount of global state nor does it really have much state (we either have a reference to the singleton or we don't). |
||
|---|---|---|
| .. | ||
| tests | ||
| meson.build | ||
| nm-dispatcher-utils.c | ||
| nm-dispatcher-utils.h | ||
| nm-dispatcher.c | ||
| nm-dispatcher.conf | ||
| nm-dispatcher.xml | ||
| org.freedesktop.nm_dispatcher.service.in | ||