gtk: avoid overallocating module paths

This commit is contained in:
Daemonratte 2026-05-15 16:19:36 +02:00
commit 01df2249df

View file

@ -234,7 +234,7 @@ _gtk_get_module_path (const gchar *type)
for (path = paths; *path; path++)
count++;
result = g_new (gchar *, count * 5 + 1);
result = g_new (gchar *, count * 4 + module_path_env_dirs + 1);
count = 0;
for (path = paths; *path; path++)