From 3bb8294e00608238c2a28753425c9ce332c2bc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 22 Oct 2015 10:36:00 +0200 Subject: [PATCH] giomodule: return a copy of module name This is a regression from commit 6dedc0. The clients expect to free the received module name, so the function must return a copy. https://bugzilla.gnome.org/show_bug.cgi?id=756952 --- gio/giomodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/giomodule.c b/gio/giomodule.c index eb5cb5537..da7c16796 100644 --- a/gio/giomodule.c +++ b/gio/giomodule.c @@ -1036,7 +1036,7 @@ get_gio_module_dir (void) #endif g_free (install_dir); #else - module_dir = GIO_MODULE_DIR; + module_dir = g_strdup (GIO_MODULE_DIR); #endif }