diff options
| -rw-r--r-- | src/core/window-props.c | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/src/core/window-props.c b/src/core/window-props.c index ed1d5c0c..2004c6a0 100644 --- a/src/core/window-props.c +++ b/src/core/window-props.c @@ -1605,8 +1605,14 @@ meta_display_init_window_prop_hooks (MetaDisplay *display)      { 0 },    }; -  MetaWindowPropHooks *table = g_memdup (hooks, sizeof (hooks)), -    *cursor = table; +  MetaWindowPropHooks *table, *cursor; + +#if GLIB_CHECK_VERSION (2, 68, 0) +  table = g_memdup2 (hooks, sizeof (hooks)); +#else +  table = g_memdup (hooks, sizeof (hooks)); +#endif +  cursor = table;    g_assert (display->prop_hooks == NULL); | 
