Skip to content
Permalink
Browse files
Fix memory leak
  • Loading branch information
jbo-ads authored and jmckenna committed Mar 28, 2020
1 parent f9f13d8 commit 0fa41a96391aeb2100f42b65382ae229b37221ac
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1190,7 +1190,7 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image)
// Coordinates stored in the shape must keep their original values for
// the shape to be drawn multiple times.
// Here the original shape is restored.
msInitShape(&shape);
msFreeShape(&shape);
msCopyShape(&savedShape, &shape);
msFreeShape(&savedShape);
}

0 comments on commit 0fa41a9

Please sign in to comment.