[gtk/popup-shadow-width] gsk: Move from g_memdup() to g_memdup2()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/popup-shadow-width] gsk: Move from g_memdup() to g_memdup2()
- Date: Sat, 13 Feb 2021 20:47:16 +0000 (UTC)
commit 1b735d5bd2a0a094b41706265e97745ddc0cb9da
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Feb 4 19:16:39 2021 +0000
gsk: Move from g_memdup() to g_memdup2()
The g_memdup() function is replaced by a safer version in newer versions
of GLib.
gsk/gskrendernodeimpl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index 473ce551f2..896dfc6566 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -28,6 +28,8 @@
#include "gsktransformprivate.h"
#include "gdk/gdktextureprivate.h"
+#include "gdk/gdk-private.h"
+
#include <cairo-ft.h>
static inline void
@@ -1744,7 +1746,7 @@ draw_shadow_corner (cairo_t *cr,
cairo_fill (mask_cr);
gsk_cairo_blur_surface (mask, radius, GSK_BLUR_X | GSK_BLUR_Y);
cairo_destroy (mask_cr);
- g_hash_table_insert (corner_mask_cache, g_memdup (&key, sizeof (key)), mask);
+ g_hash_table_insert (corner_mask_cache, g_memdup2 (&key, sizeof (key)), mask);
}
gdk_cairo_set_source_rgba (cr, color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]