projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RSSyl: Strip leading and trailing whitespace from XML tag contents.
[claws.git]
/
src
/
plugins
/
rssyl
/
libfeed
/
parser_rdf.c
diff --git
a/src/plugins/rssyl/libfeed/parser_rdf.c
b/src/plugins/rssyl/libfeed/parser_rdf.c
index 02b80ea680f8da9a76aa010d83361f4a594767c9..d514bf0b1431b67ca2e20e5f0e497b82371ab491 100644
(file)
--- a/
src/plugins/rssyl/libfeed/parser_rdf.c
+++ b/
src/plugins/rssyl/libfeed/parser_rdf.c
@@
-57,7
+57,7
@@
void feed_parser_rdf_end(void *data, const gchar *el)
gchar *text = NULL;
if( ctx->str != NULL )
- text =
ctx->str->str
;
+ text =
g_strstrip(g_strdup(ctx->str->str))
;
else
text = "";
@@
-142,6
+142,7
@@
void feed_parser_rdf_end(void *data, const gchar *el)
}
if( ctx->str != NULL ) {
+ g_free(text);
g_string_free(ctx->str, TRUE);
ctx->str = NULL;
}