From 98fefa5b5fb55d64768877f29d96e48121e4dbc0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 25 Feb 2003 23:20:16 +0000 Subject: [PATCH] Use g_malloc instead of directly using malloc. 2003-02-26 Matthias Clasen * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use g_malloc instead of directly using malloc. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gunidecomp.c | 4 ++-- 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 49eac47..636d299 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-26 Matthias Clasen + + * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use + g_malloc instead of directly using malloc. + 2003-02-25 Tor Lillqvist * glib/glib.def: Add a couple of missing entries, thanks to Cedric diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 49eac47..636d299 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2003-02-26 Matthias Clasen + + * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use + g_malloc instead of directly using malloc. + 2003-02-25 Tor Lillqvist * glib/glib.def: Add a couple of missing entries, thanks to Cedric diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 49eac47..636d299 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2003-02-26 Matthias Clasen + + * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use + g_malloc instead of directly using malloc. + 2003-02-25 Tor Lillqvist * glib/glib.def: Add a couple of missing entries, thanks to Cedric diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 49eac47..636d299 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2003-02-26 Matthias Clasen + + * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use + g_malloc instead of directly using malloc. + 2003-02-25 Tor Lillqvist * glib/glib.def: Add a couple of missing entries, thanks to Cedric diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 49eac47..636d299 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2003-02-26 Matthias Clasen + + * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use + g_malloc instead of directly using malloc. + 2003-02-25 Tor Lillqvist * glib/glib.def: Add a couple of missing entries, thanks to Cedric diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 49eac47..636d299 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2003-02-26 Matthias Clasen + + * glib/gunidecomp.c (g_unicode_canonical_decomposition): Use + g_malloc instead of directly using malloc. + 2003-02-25 Tor Lillqvist * glib/glib.def: Add a couple of missing entries, thanks to Cedric diff --git a/glib/gunidecomp.c b/glib/gunidecomp.c index 5c6fc3d..a2211e1 100644 --- a/glib/gunidecomp.c +++ b/glib/gunidecomp.c @@ -157,7 +157,7 @@ g_unicode_canonical_decomposition (gunichar ch, /* We've counted twice as many bytes as there are characters. */ *result_len = len / 2; - r = malloc (len / 2 * sizeof (gunichar)); + r = g_malloc (len / 2 * sizeof (gunichar)); for (i = 0; i < len; i += 2) { @@ -167,7 +167,7 @@ g_unicode_canonical_decomposition (gunichar ch, else { /* Not in our table. */ - r = malloc (sizeof (gunichar)); + r = g_malloc (sizeof (gunichar)); *r = ch; *result_len = 1; } -- 2.7.4