Skip to content

mallard-document: fix crash when reloading document

Michael Catanzaro requested to merge mcatanzaro/#122 into master

libxml memory management is quite uncleary, but I believe priv->cache has ownership of priv->mallard_ns, so the later is invalidated when the former is freed. We need to recreate it here.

Reportedly fixes #122 (closed) for Shaun. (I was still seeing another crash, but it's probably a separate issue.)

Merge request reports