Commit 546759a3 authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson

Check for a NULL context in case we haven't called rsvg_handle_write to

2002-05-01  Anders Carlsson  <andersca@gnu.org>

	* rsvg.c: (rsvg_handle_close):
	Check for a NULL context in case we haven't called
	rsvg_handle_write to create it. Fixes #80374, reported by
	Jakub Steiner.
parent 825fb932
2002-05-01 Anders Carlsson <andersca@gnu.org>
* rsvg.c: (rsvg_handle_close):
Check for a NULL context in case we haven't called
rsvg_handle_write to create it. Fixes #80374, reported by
Jakub Steiner.
2002-04-18 Ramiro Estrugo <ramiro@fateware.com>
* MAINTAINERS: Removed myself from list.
......
......@@ -1566,8 +1566,13 @@ rsvg_handle_close (RsvgHandle *handle,
GError *real_error;
handle->error = &real_error;
xmlParseChunk (handle->ctxt, chars, 1, TRUE);
xmlFreeParserCtxt (handle->ctxt);
if (handle->ctxt != NULL)
{
xmlParseChunk (handle->ctxt, chars, 1, TRUE);
xmlFreeParserCtxt (handle->ctxt);
}
/* FIXME: Error handling not implemented. */
/*
if (real_error != 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