Skip to content

Commit 0fa41a9

Browse files
jbo-adsjmckenna
authored andcommitted
Fix memory leak
1 parent f9f13d8 commit 0fa41a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mapdraw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image)
11901190
// Coordinates stored in the shape must keep their original values for
11911191
// the shape to be drawn multiple times.
11921192
// Here the original shape is restored.
1193-
msInitShape(&shape);
1193+
msFreeShape(&shape);
11941194
msCopyShape(&savedShape, &shape);
11951195
msFreeShape(&savedShape);
11961196
}

0 commit comments

Comments
 (0)