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
This commit is contained in:
Víctor Manuel Jáquez Leal 2015-10-22 10:36:00 +02:00 committed by Ignacio Casal Quinteiro
parent 144a87a643
commit 3bb8294e00

View File

@ -1036,7 +1036,7 @@ get_gio_module_dir (void)
#endif #endif
g_free (install_dir); g_free (install_dir);
#else #else
module_dir = GIO_MODULE_DIR; module_dir = g_strdup (GIO_MODULE_DIR);
#endif #endif
} }