Commit 9487ce77 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Changed GtkComboBoxText <items> builder parser to use g_string_append_len().

parent 2081ade6
......@@ -206,14 +206,9 @@ item_text (GMarkupParseContext *context,
GError **error)
{
ItemParserData *data = (ItemParserData*)user_data;
gchar *string;
if (!data->is_text)
return;
string = g_strndup (text, text_len);
g_string_append (data->string, string);
g_free (string);
if (data->is_text)
g_string_append_len (data->string, text, text_len);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment