[Libreoffice-commits] core.git: Branch 'feature/saxparser' - sax/source
Michael Meeks
michael.meeks at collabora.com
Fri Oct 11 14:01:15 PDT 2013
sax/source/fastparser/fastparser.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5cd9163e3d535ae323896ac12dad37a04cde746e
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Fri Oct 11 21:59:05 2013 +0100
fastparser: get conditionals correct for where to free things.
Change-Id: I771e5003f39f0d42e751269f311dc21ca5639686
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 737ae88..731097e 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -823,7 +823,7 @@ void FastSaxParser::produce(Event *pEvent)
rEntity.maConsumeResume.set();
-#ifndef FREE_IN_MAIN_THREAD
+#if !FREE_IN_MAIN_THREAD
deleteUsedEvents();
#endif
}
@@ -876,7 +876,7 @@ bool FastSaxParser::consume(EventList *pEventList)
}
}
rEntity.maUsedEvents.push(pEventList);
-#ifdef FREE_IN_MAIN_THREAD
+#if FREE_IN_MAIN_THREAD
deleteUsedEvents();
#endif
return !bIsParserFinished;
More information about the Libreoffice-commits
mailing list