[metacity] core: use g_memdup2
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] core: use g_memdup2
- Date: Sun, 14 Mar 2021 13:11:53 +0000 (UTC)
commit c9805c2d74ba81c261737f17e90d9365d025a2f4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 14:56:39 2021 +0200
core: use g_memdup2
configure.ac | 2 +-
src/core/screen.c | 2 +-
src/core/window-props.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6f1c78ee7..6defc8b45 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,7 @@ dnl **************************************************************************
dnl Check for required packages
dnl **************************************************************************
-GLIB_REQUIRED_VERSION=2.44.0
+GLIB_REQUIRED_VERSION=2.67.3
GTK_REQUIRED_VERSION=3.22.0
PANGO_REQUIRED_VERSION=1.2.0
XCOMPOSITE_REQUIRED_VERSION=0.3
diff --git a/src/core/screen.c b/src/core/screen.c
index 760ead440..ff8b55252 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -596,7 +596,7 @@ meta_screen_manage_all_windows (MetaScreen *screen)
meta_stack_tracker_get_stack (screen->stack_tracker, &windows, &n_windows);
/* Copy the stack as it will be modified as part of the loop */
- xwindows = g_memdup (windows, sizeof (Window) * n_windows);
+ xwindows = g_memdup2 (windows, sizeof (Window) * n_windows);
for (i = 0; i < n_windows; i++)
{
diff --git a/src/core/window-props.c b/src/core/window-props.c
index bc5e235ec..a6ad2b03d 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -1939,7 +1939,7 @@ meta_display_init_window_prop_hooks (MetaDisplay *display)
},
};
- MetaWindowPropHooks *table = g_memdup (hooks, sizeof (hooks)),
+ MetaWindowPropHooks *table = g_memdup2 (hooks, sizeof (hooks)),
*cursor = table;
g_assert (display->prop_hooks == NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]