changeset 1814:53f3411bf94b

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 May 2021 15:52:38 +0200
parents 53aa3f72b539
children b81775f1b196
files Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp	Tue May 25 15:27:35 2021 +0200
+++ b/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp	Tue May 25 15:52:38 2021 +0200
@@ -1251,7 +1251,7 @@
             size_t frame,
             const OrthancStone::AnnotationsSceneLayer& layer)
   {
-    std::unique_ptr<Json::Value> serialized;
+    std::unique_ptr<Json::Value> serialized(new Json::Value);
     layer.Serialize(*serialized);
 
     const Index index(sopInstanceUid, frame);