--- a\srcmglplot\iup_mglplot.cpp	Mon Oct 17 16:08:46 2016
+++ b\srcmglplot\iup_mglplot.cpp	Fri Jan 19 00:36:40 2018
@@ -4038,10 +4038,9 @@
 
   if (inName)
   {
-    Iarray* inNames = NULL;
+    Iarray* inNames;
     if (sample_index == 0)
     {
-      if (inNames) iupArrayDestroy(inNames);
       inNames =  iupArrayCreate(10, sizeof(char*));
       iupAttribSet(ih, "_IUP_MGLPLOT_NAMES", (char*)inNames);
     }
