Commit 2081ade6 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Changed GtkRecentFilter builder parsing to use g_string_append_len

parent 26b326b7
......@@ -291,14 +291,9 @@ parser_text_element (GMarkupParseContext *context,
GError **error)
SubParserData *parser_data = (SubParserData*)user_data;
gchar *string;
if (parser_data->parsing)
string = g_strndup (text, text_len);
g_string_append (parser_data->string, string);
g_free (string);
g_string_append_len (parser_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