applicationaccels: Use g_renew()

This commit is contained in:
Benjamin Otte
2020-03-06 05:06:25 +01:00
parent e37729756d
commit df282a13bb

View File

@@ -96,8 +96,7 @@ add_entry (GtkApplicationAccels *accels,
else
n = 0;
new = g_new (const gchar *, n + 1 + 1);
memcpy (new, old, n * sizeof (const gchar *));
new = g_renew (const gchar *, old, n + 1 + 1);
new[n] = action_and_target;
new[n + 1] = NULL;