Commit f6e5ac2b authored by Morten Welinder's avatar Morten Welinder

xml: plug leak.

parent ad479bc1
2010-08-23 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_colrow): Simplify and plug leak.
(xml_sax_finish_parse_wb_attr): Plug leak.
2010-08-20 Andreas J. Guelzow <aguelzow@pyrshep.ca>
......
......@@ -626,11 +626,13 @@ xml_sax_finish_parse_wb_attr (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
{
XMLSaxParseState *state = (XMLSaxParseState *)xin->user_state;
g_return_if_fail (state->attribute.name != NULL);
g_return_if_fail (state->attribute.value != NULL);
wb_view_set_attribute (state->wb_view,
state->attribute.name, state->attribute.value);
if (state->attribute.name && state->attribute.value) {
wb_view_set_attribute (state->wb_view,
state->attribute.name,
state->attribute.value);
} else {
xml_sax_barf (G_STRFUNC, "workbook view attributes complete");
}
g_free (state->attribute.value); state->attribute.value = NULL;
g_free (state->attribute.name); state->attribute.name = NULL;
......
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