diff options
author | Michael Terry <mike@mterry.name> | 2020-12-06 18:36:58 -0500 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2020-12-06 18:37:40 -0500 |
commit | c8d991e4de115bee9469bbd2693e68ac72e25b82 (patch) | |
tree | da8b1ffcdaeb3a8e8455da5c7eaa1f406a75a060 /gtk/gtkapplication-wayland.c | |
parent | a165bb9f46c0bc03171fb4a9fd98dafc067534af (diff) | |
download | gtk+-c8d991e4de115bee9469bbd2693e68ac72e25b82.tar.gz |
wayland: avoid referencing unallocated memory when uninhibiting
Diffstat (limited to 'gtk/gtkapplication-wayland.c')
-rw-r--r-- | gtk/gtkapplication-wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkapplication-wayland.c b/gtk/gtkapplication-wayland.c index 76fa144751..7bc311b7f1 100644 --- a/gtk/gtkapplication-wayland.c +++ b/gtk/gtkapplication-wayland.c @@ -122,7 +122,7 @@ gtk_application_impl_wayland_inhibit (GtkApplicationImpl *impl, if (!flags) return 0; - inhibitor = g_slice_new (GtkApplicationWaylandInhibitor); + inhibitor = g_slice_new0 (GtkApplicationWaylandInhibitor); inhibitor->cookie = ++wayland->next_cookie; inhibitor->flags = flags; wayland->inhibitors = g_slist_prepend (wayland->inhibitors, inhibitor); |