* debug-helpers.c: avoid g_strdup() in mono_type_full_name().
svn path=/trunk/mono/; revision=145449
+2009-11-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * debug-helpers.c: avoid g_strdup() in mono_type_full_name().
+
2009-11-04 Sebastien Pouliot <sebastien@ximian.com>
* string-icalls.c|h: Remove string internal calls that are not
mono_type_full_name (MonoType *type)
{
GString *str;
- char *res;
str = g_string_new ("");
mono_type_get_desc (str, type, TRUE);
-
- res = g_strdup (str->str);
- g_string_free (str, TRUE);
- return res;
+ return g_string_free (str, FALSE);
}
char*