mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-16 12:28:48 +02:00
Use g_malloc instead of directly using malloc.
2003-02-26 Matthias Clasen <maclas@gmx.de> * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use g_malloc instead of directly using malloc.
This commit is contained in:
parent
0306e378e5
commit
98fefa5b5f
@ -1,3 +1,8 @@
|
|||||||
|
2003-02-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gunidecomp.c (g_unicode_canonical_decomposition): Use
|
||||||
|
g_malloc instead of directly using malloc.
|
||||||
|
|
||||||
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-02-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gunidecomp.c (g_unicode_canonical_decomposition): Use
|
||||||
|
g_malloc instead of directly using malloc.
|
||||||
|
|
||||||
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-02-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gunidecomp.c (g_unicode_canonical_decomposition): Use
|
||||||
|
g_malloc instead of directly using malloc.
|
||||||
|
|
||||||
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-02-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gunidecomp.c (g_unicode_canonical_decomposition): Use
|
||||||
|
g_malloc instead of directly using malloc.
|
||||||
|
|
||||||
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-02-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gunidecomp.c (g_unicode_canonical_decomposition): Use
|
||||||
|
g_malloc instead of directly using malloc.
|
||||||
|
|
||||||
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-02-26 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gunidecomp.c (g_unicode_canonical_decomposition): Use
|
||||||
|
g_malloc instead of directly using malloc.
|
||||||
|
|
||||||
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
2003-02-25 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
* glib/glib.def: Add a couple of missing entries, thanks to Cedric
|
||||||
|
@ -157,7 +157,7 @@ g_unicode_canonical_decomposition (gunichar ch,
|
|||||||
/* We've counted twice as many bytes as there are
|
/* We've counted twice as many bytes as there are
|
||||||
characters. */
|
characters. */
|
||||||
*result_len = len / 2;
|
*result_len = len / 2;
|
||||||
r = malloc (len / 2 * sizeof (gunichar));
|
r = g_malloc (len / 2 * sizeof (gunichar));
|
||||||
|
|
||||||
for (i = 0; i < len; i += 2)
|
for (i = 0; i < len; i += 2)
|
||||||
{
|
{
|
||||||
@ -167,7 +167,7 @@ g_unicode_canonical_decomposition (gunichar ch,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Not in our table. */
|
/* Not in our table. */
|
||||||
r = malloc (sizeof (gunichar));
|
r = g_malloc (sizeof (gunichar));
|
||||||
*r = ch;
|
*r = ch;
|
||||||
*result_len = 1;
|
*result_len = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user