diff options
Diffstat (limited to 'lib/saxParse.cpp')
-rw-r--r-- | lib/saxParse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/saxParse.cpp b/lib/saxParse.cpp index d592a1f..5c597aa 100644 --- a/lib/saxParse.cpp +++ b/lib/saxParse.cpp @@ -11,7 +11,7 @@ namespace Persistence { void SAXParse::parseFile(FILE * file) { - mxmlSAXLoadFile( + mxmlRelease(mxmlSAXLoadFile( nullptr, file, MXML_TEXT_CALLBACK, [](mxml_node_t * n, mxml_sax_event_t e, void * data) { SAXParse * self = static_cast<SAXParse *>(data); @@ -36,6 +36,6 @@ namespace Persistence { break; } }, - this); + this)); } } |