From 01df2249df8cb9ce4b95279f643fcf5cc3d2d4a6 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 15 May 2026 16:19:36 +0200 Subject: [PATCH] gtk: avoid overallocating module paths --- gtk/gtkmodules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c index 6fa78ea51..061873bdf 100644 --- a/gtk/gtkmodules.c +++ b/gtk/gtkmodules.c @@ -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++)