Bug 12232 fixed: fix several memleaks in various filler
[scilab.git] / scilab / modules / graphic_objects / src / cpp / NgonGridGrayplotDataDecomposer.cpp
index 53d732b..fef5f1c 100644 (file)
@@ -80,6 +80,8 @@ void NgonGridGrayplotDataDecomposer::fillColors(char* id, float* buffer, int buf
     {
         decomposer->fillDirectGridColors(buffer, bufferLength, elementsSize, colormap, colormapSize, z, numX, numY);
     }
+
+    releaseGraphicObjectProperty(__GO_COLORMAP__, colormap, jni_double_vector, colormapSize);
 }
 
 int NgonGridGrayplotDataDecomposer::fillIndices(char* id, int* buffer, int bufferLength, int logMask)