mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 14:14:10 +00:00
context: Fix a small leak in meta_context_main_get_x11_display_policy()
The caller of sd_pid_get_user_unit() is supposed to free the unit name string. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3188>
This commit is contained in:
parent
90a00dae99
commit
03ba3a825e
@ -322,7 +322,7 @@ meta_context_main_get_x11_display_policy (MetaContext *context)
|
|||||||
MetaCompositorType compositor_type;
|
MetaCompositorType compositor_type;
|
||||||
#ifdef HAVE_WAYLAND
|
#ifdef HAVE_WAYLAND
|
||||||
MetaContextMain *context_main = META_CONTEXT_MAIN (context);
|
MetaContextMain *context_main = META_CONTEXT_MAIN (context);
|
||||||
char *unit;
|
g_autofree char *unit = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
compositor_type = meta_context_get_compositor_type (context);
|
compositor_type = meta_context_get_compositor_type (context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user