Avoid an unnecessary memleak. (#141998, Nikolai Weibull)

Sun May  9 02:04:14 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
	memleak.  (#141998, Nikolai Weibull)
This commit is contained in:
Matthias Clasen 2004-05-09 06:05:48 +00:00 committed by Matthias Clasen
parent 02d3e412ab
commit 57b08913ab
6 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun May 9 02:04:14 2004 Matthias Clasen <maclas@gmx.de>
* glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
memleak. (#141998, Nikolai Weibull)
Sat May 8 23:02:26 2004 Matthias Clasen <maclas@gmx.de>
* glib/gutils.h: Remove vestigial g_get_codeset().

View File

@ -1,3 +1,8 @@
Sun May 9 02:04:14 2004 Matthias Clasen <maclas@gmx.de>
* glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
memleak. (#141998, Nikolai Weibull)
Sat May 8 23:02:26 2004 Matthias Clasen <maclas@gmx.de>
* glib/gutils.h: Remove vestigial g_get_codeset().

View File

@ -1,3 +1,8 @@
Sun May 9 02:04:14 2004 Matthias Clasen <maclas@gmx.de>
* glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
memleak. (#141998, Nikolai Weibull)
Sat May 8 23:02:26 2004 Matthias Clasen <maclas@gmx.de>
* glib/gutils.h: Remove vestigial g_get_codeset().

View File

@ -1,3 +1,8 @@
Sun May 9 02:04:14 2004 Matthias Clasen <maclas@gmx.de>
* glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
memleak. (#141998, Nikolai Weibull)
Sat May 8 23:02:26 2004 Matthias Clasen <maclas@gmx.de>
* glib/gutils.h: Remove vestigial g_get_codeset().

View File

@ -1,3 +1,8 @@
Sun May 9 02:04:14 2004 Matthias Clasen <maclas@gmx.de>
* glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
memleak. (#141998, Nikolai Weibull)
Sat May 8 23:02:26 2004 Matthias Clasen <maclas@gmx.de>
* glib/gutils.h: Remove vestigial g_get_codeset().

View File

@ -942,11 +942,12 @@ gchar *
g_utf8_casefold (const gchar *str,
gssize len)
{
GString *result = g_string_new (NULL);
GString *result;
const char *p;
g_return_val_if_fail (str != NULL, NULL);
result = g_string_new (NULL);
p = str;
while ((len < 0 || p < str + len) && *p)
{