mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
strdup result so caller doesn't free internally managed memory.
Thu Aug 5 20:53:00 2004 Ray Strode <rstrode@redhat.com> * glib/gutils.h (g_get_codeset): strdup result so caller doesn't free internally managed memory.
This commit is contained in:
parent
f038c1070a
commit
1c5a400097
@ -1,3 +1,8 @@
|
||||
Thu Aug 5 20:53:00 2004 Ray Strode <rstrode@redhat.com>
|
||||
|
||||
* glib/gutils.h (g_get_codeset): strdup result so caller
|
||||
doesn't free internally managed memory.
|
||||
|
||||
Sat Jul 31 20:33:07 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/shell-test.c: Include a test involving consecutive
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Aug 5 20:53:00 2004 Ray Strode <rstrode@redhat.com>
|
||||
|
||||
* glib/gutils.h (g_get_codeset): strdup result so caller
|
||||
doesn't free internally managed memory.
|
||||
|
||||
Sat Jul 31 20:33:07 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/shell-test.c: Include a test involving consecutive
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Aug 5 20:53:00 2004 Ray Strode <rstrode@redhat.com>
|
||||
|
||||
* glib/gutils.h (g_get_codeset): strdup result so caller
|
||||
doesn't free internally managed memory.
|
||||
|
||||
Sat Jul 31 20:33:07 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/shell-test.c: Include a test involving consecutive
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Aug 5 20:53:00 2004 Ray Strode <rstrode@redhat.com>
|
||||
|
||||
* glib/gutils.h (g_get_codeset): strdup result so caller
|
||||
doesn't free internally managed memory.
|
||||
|
||||
Sat Jul 31 20:33:07 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/shell-test.c: Include a test involving consecutive
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Aug 5 20:53:00 2004 Ray Strode <rstrode@redhat.com>
|
||||
|
||||
* glib/gutils.h (g_get_codeset): strdup result so caller
|
||||
doesn't free internally managed memory.
|
||||
|
||||
Sat Jul 31 20:33:07 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* tests/shell-test.c: Include a test involving consecutive
|
||||
|
@ -1236,11 +1236,11 @@ g_nullify_pointer (gpointer *nullify_location)
|
||||
gchar *
|
||||
g_get_codeset (void)
|
||||
{
|
||||
gchar *charset;
|
||||
const gchar *charset;
|
||||
|
||||
g_get_charset (&charset);
|
||||
|
||||
return charset;
|
||||
return strdup (charset);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
|
Loading…
x
Reference in New Issue
Block a user