diff -u -u -r1.25 rb-podcast-parse.c
--- podcast/rb-podcast-parse.c	24 Mar 2006 09:05:00 -0000	1.25
+++ podcast/rb-podcast-parse.c	2 Apr 2006 00:49:32 -0000
@@ -488,6 +488,14 @@
 	ctx->prop_value = g_string_sized_new (512);
                             
 	ctxt = xmlCreateMemoryParserCtxt (buffer, file_size);
+	if (ctx == NULL) {
+		g_free (sax_handler);
+		g_free (buffer);
+		g_string_free (ctx->prop_value, TRUE);
+		g_free (ctx);
+		return FALSE;
+	}
+
 	ctx->xmlctx = ctxt;
 	ctxt->userData = ctx;
 	ctxt->sax = sax_handler;
