summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a0b6e37553..9f6ebdf3d2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -440,6 +440,12 @@ main (int argc, char *argv[])
/* Set up platform interaction layer */
nm_linux_platform_setup ();
+ /* FIXME: intentionally leak the singleton instance of NMPlatform.
+ * nm_linux_platform_setup() will register the singleton for destruction,
+ * but we don't yet shut down all singletons properly, so don't destroy
+ * NMPlatform. */
+ g_object_ref (NM_PLATFORM_GET);
+
nm_auth_manager_setup (nm_config_get_auth_polkit (config));
nm_dispatcher_init ();