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

@ -673,7 +673,7 @@ sysprof_display_present_async (SysprofDisplay *self,
return;
}
g_task_set_task_data (task, g_memdup (&aids->len, sizeof aids->len), g_free);
g_task_set_task_data (task, g_memdup2 (&aids->len, sizeof aids->len), g_free);
for (guint i = 0; i < aids->len; i++)
{