diff options
-rw-r--r-- | src/utils/xml.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index 65eb1370..76f1d6df 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -48,10 +48,10 @@ namespace XML Document::Document(const std::string &filename, bool useResman): mDoc(0) { - XMLContext *ctx = new XMLContext(); - ctx->file = filename; - ctx->resman = useResman; - xmlSetStructuredErrorFunc(ctx, xmlLogger); + XMLContext ctx; + ctx.file = filename; + ctx.resman = useResman; + xmlSetStructuredErrorFunc(&ctx, xmlLogger); int size; char *data = NULL; |