ports/graphics/mapserver/files/patch-mapfile.c
Wen Heping b0adf7a1bf - Update to 6.4.1
- Fix build with python option [1]
- Fix run error while reading MapInfo layer with AUTO styleitem [2]

PR:		189940 [1]
Submitted by:	Julien Cigar<jcigar@ulb.ac.be> [1]
		marten.ambroz@seznam.cz (via email) [2]
2014-08-26 13:05:22 +00:00

11 lines
362 B
C

--- mapfile.c.orig 2014-08-26 20:37:17.000000000 +0800
+++ mapfile.c 2014-08-26 20:38:39.000000000 +0800
@@ -3398,7 +3398,7 @@
/* reset labels */
for(i=0; i<class->numlabels; i++) {
- if(class->styles[i] != NULL) {
+ if(class->labels[i] != NULL) {
if(freeLabel(class->labels[i]) == MS_SUCCESS ) {
msFree(class->labels[i]);
}