Skip to content

Commit

Permalink
Fix msCopyClass causing memory corruption
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed Aug 2, 2012
1 parent 87f79de commit 3c51b37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mapcopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ int msCopyClass(classObj *dst, classObj *src, layerObj *layer)
msSetError(MS_MEMERR, "Failed to copy label.", "msCopyClass()");
return MS_FAILURE;
}

dst->numlabels++;
}
MS_COPYSTELEM(numlabels);

Expand Down

0 comments on commit 3c51b37

Please sign in to comment.