diff --git a/src/core/meta-context-main.c b/src/core/meta-context-main.c index b40384f13..f464d8f0b 100644 --- a/src/core/meta-context-main.c +++ b/src/core/meta-context-main.c @@ -322,7 +322,7 @@ meta_context_main_get_x11_display_policy (MetaContext *context) MetaCompositorType compositor_type; #ifdef HAVE_WAYLAND MetaContextMain *context_main = META_CONTEXT_MAIN (context); - char *unit; + g_autofree char *unit = NULL; #endif compositor_type = meta_context_get_compositor_type (context);