use g_memdup2()

This commit is contained in:
Christian Hergert
2021-02-23 15:38:45 -08:00
parent 843585e00d
commit b77523eb3d
7 changed files with 8 additions and 8 deletions

View File

@ -139,7 +139,7 @@ rectangles_sort (Rectangles *self)
sysprof_color_cycle_next (self->cycle, &rgba);
g_hash_table_insert (self->y_indexes, (gchar *)rect->name, GUINT_TO_POINTER (++sequence));
g_hash_table_insert (self->colors, (gchar *)rect->name, g_memdup (&rgba, sizeof rgba));
g_hash_table_insert (self->colors, (gchar *)rect->name, g_memdup2 (&rgba, sizeof rgba));
}
}