diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2015-10-22 10:36:00 +0200 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2015-10-22 11:21:47 +0200 |
commit | 3bb8294e00608238c2a28753425c9ce332c2bc0e (patch) | |
tree | 2e502454b1a52f308b4c14508e04389d2c86b25f /gio/giomodule.c | |
parent | 144a87a643a619ff82a3acaffa6ac3761bc5db1f (diff) | |
download | glib-3bb8294e00608238c2a28753425c9ce332c2bc0e.tar.gz |
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
Diffstat (limited to 'gio/giomodule.c')
-rw-r--r-- | gio/giomodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |