diff Framework/Loaders/LoaderStateMachine.cpp @ 1134:87fbeb823375 broker

allocating messages from oracle commands on the stack
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Nov 2019 15:16:45 +0100
parents 8e3763d1736a
children a0a33e5ea5bb
line wrap: on
line diff
--- a/Framework/Loaders/LoaderStateMachine.cpp	Wed Nov 06 12:56:23 2019 +0100
+++ b/Framework/Loaders/LoaderStateMachine.cpp	Wed Nov 06 15:16:45 2019 +0100
@@ -144,7 +144,7 @@
       activeCommands_--;
       try
       {
-        dynamic_cast<State&>(message.GetOrigin().GetPayload()).Handle(message);
+        dynamic_cast<State&>(message.GetCommand().GetPayload()).Handle(message);
         Step();
       }
       catch (Orthanc::OrthancException& e)