mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
use g_memdup2()
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user