wayland/inhibit-shortcuts-dialog: Use g_new0 instead of g_new
The code assumed the newly allocated blocked was initialized to 0, but it wasn't since g_new was used. Fix that by using g_new0. https://bugzilla.gnome.org/show_bug.cgi?id=787570
This commit is contained in:
parent
d4968e10e5
commit
07f6c85cc7
@ -112,7 +112,7 @@ meta_wayland_surface_ensure_inhibit_shortcuts_dialog (MetaWaylandSurface *surfac
|
|||||||
if (data)
|
if (data)
|
||||||
return data;
|
return data;
|
||||||
|
|
||||||
data = g_new (InhibitShortcutsData, 1);
|
data = g_new0 (InhibitShortcutsData, 1);
|
||||||
surface_inhibit_shortcuts_data_set (surface, data);
|
surface_inhibit_shortcuts_data_set (surface, data);
|
||||||
g_signal_connect (surface, "destroy",
|
g_signal_connect (surface, "destroy",
|
||||||
G_CALLBACK (on_surface_destroyed),
|
G_CALLBACK (on_surface_destroyed),
|
||||||
|
Loading…
Reference in New Issue
Block a user