diff Plugins/Include/orthanc/OrthancCPlugin.h @ 1605:fd0464ce1962

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Sep 2015 16:41:16 +0200
parents 292bce3f54ed
children 31f4adefb88f
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h	Tue Sep 01 14:57:13 2015 +0200
+++ b/Plugins/Include/orthanc/OrthancCPlugin.h	Tue Sep 01 16:41:16 2015 +0200
@@ -2923,6 +2923,13 @@
   }
 
 
+
+
+  typedef struct
+  {
+    OrthancPluginImage*   image;
+  } _OrthancPluginFreeImage;
+
   /**
    * @brief Free an image.
    *
@@ -2936,8 +2943,7 @@
     OrthancPluginContext* context, 
     OrthancPluginImage*   image)
   {
-    _OrthancPluginGetImageInfo params;
-    memset(&params, 0, sizeof(params));
+    _OrthancPluginFreeImage params;
     params.image = image;
 
     context->InvokeService(context, _OrthancPluginService_FreeImage, &params);