Missed a malloc->g_malloc
authorAaron Bockover <abockover@novell.com>
Wed, 16 Aug 2006 23:11:11 +0000 (23:11 -0000)
committerAaron Bockover <abockover@novell.com>
Wed, 16 Aug 2006 23:11:11 +0000 (23:11 -0000)
svn path=/trunk/mono/; revision=63859

eglib/src/gstr.c

index 6a72c104139e3934446700ea1cc1529d00340883..9b6c112baa17e4e5f19f08ded05c07c42d5e3fc2 100644 (file)
@@ -104,7 +104,7 @@ g_strconcat (const gchar *first, ...)
 }
 
 gchar ** 
-g_strsplit(const gchar *string, const gchar *delimiter, gint max_tokens)
+g_strsplit (const gchar *string, const gchar *delimiter, gint max_tokens)
 {
        gchar *string_c;
        gchar *strtok_save, **vector;
@@ -126,7 +126,7 @@ g_strsplit(const gchar *string, const gchar *delimiter, gint max_tokens)
        
        while(token != NULL) {
                token_length = strlen(token);
-               token_c = (gchar *)malloc(token_length + 1);
+               token_c = (gchar *)g_malloc(token_length + 1);
                strncpy(token_c, token, token_length);
                token_c[token_length] = '\0';