From af7865c1b7298f531070ca02281408b52b4c5df2 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 23 Nov 2018 06:12:55 +0900 Subject: locale: store polkit_registry in Context --- src/locale/keymap-util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/locale/keymap-util.c') diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c index 495261f4d7..0bf62df22e 100644 --- a/src/locale/keymap-util.c +++ b/src/locale/keymap-util.c @@ -5,6 +5,7 @@ #include #include +#include "bus-util.h" #include "def.h" #include "env-util.h" #include "fd-util.h" @@ -76,6 +77,8 @@ void context_clear(Context *c) { sd_bus_message_unref(c->locale_cache); sd_bus_message_unref(c->x11_cache); sd_bus_message_unref(c->vc_cache); + + bus_verify_polkit_async_registry_free(c->polkit_registry); }; void locale_simplify(char *locale[_VARIABLE_LC_MAX]) { -- cgit v1.2.1