gtk: avoid overallocating module paths
This commit is contained in:
parent
7c9df99170
commit
01df2249df
1 changed files with 1 additions and 1 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue