[glib] giomodule: return a copy of module name
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] giomodule: return a copy of module name
- Date: Thu, 22 Oct 2015 09:22:07 +0000 (UTC)
commit 3bb8294e00608238c2a28753425c9ce332c2bc0e
Author: Víctor Manuel Jáquez Leal <vjaquez igalia com>
Date: Thu Oct 22 10:36:00 2015 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/giomodule.c b/gio/giomodule.c
index eb5cb55..da7c167 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
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]