Permalink
Browse files

Fix crash when copying a map with label leaders

  • Loading branch information...
pagameba committed Oct 6, 2014
1 parent d597a28 commit 2f200c083601c33b70c015d21ad13fa0579e072f
Showing with 2 additions and 0 deletions.
  1. +2 −0 mapcopy.c
View
@@ -396,6 +396,7 @@ int msCopyLabel(labelObj *dst, labelObj *src)
if(src->leader) {
dst->leader = msSmallMalloc(sizeof(labelLeaderObj));
+ initLeader(dst->leader);
msCopyLabelLeader(dst->leader,src->leader);
} else {
if(dst->leader) {
@@ -573,6 +574,7 @@ int msCopyClass(classObj *dst, classObj *src, layerObj *layer)
}
if(!dst->leader) {
dst->leader = msSmallMalloc(sizeof(labelLeaderObj));
+ initLeader(dst->leader);
}
msCopyLabelLeader(dst->leader,src->leader);
}

0 comments on commit 2f200c0

Please sign in to comment.