mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
settings: Avoid warning when clearing xwayland grab access lists
On the first run, they are NULL, so don't try to free them. https://bugzilla.gnome.org/show_bug.cgi?id=792853
This commit is contained in:
parent
c063d43be8
commit
dbd053020a
@ -348,11 +348,13 @@ update_xwayland_grab_access_rules (MetaSettings *settings)
|
||||
int i;
|
||||
|
||||
/* Free previous patterns and create new arrays */
|
||||
g_ptr_array_free (settings->xwayland_grab_whitelist_patterns, TRUE);
|
||||
g_clear_pointer (&settings->xwayland_grab_whitelist_patterns,
|
||||
g_ptr_array_unref);
|
||||
settings->xwayland_grab_whitelist_patterns =
|
||||
g_ptr_array_new_with_free_func ((GDestroyNotify) g_pattern_spec_free);
|
||||
|
||||
g_ptr_array_free (settings->xwayland_grab_blacklist_patterns, TRUE);
|
||||
g_clear_pointer (&settings->xwayland_grab_blacklist_patterns,
|
||||
g_ptr_array_unref);
|
||||
settings->xwayland_grab_blacklist_patterns =
|
||||
g_ptr_array_new_with_free_func ((GDestroyNotify) g_pattern_spec_free);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user