Skip to content

Commit a09f2ae

Browse files
committed
fix build when v8 is disabled (rfc 102)
1 parent a966c1c commit a09f2ae

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

mapfile.c

+2
Original file line numberDiff line numberDiff line change
@@ -5896,7 +5896,9 @@ int initMap(mapObj *map)
58965896

58975897
msInitQuery(&(map->query));
58985898

5899+
#ifdef USE_V8
58995900
map->v8context = NULL;
5901+
#endif
59005902

59015903
return(0);
59025904
}

mapobject.c

+2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ void msFreeMap(mapObj *map)
137137

138138
msFreeQuery(&(map->query));
139139

140+
#ifdef USE_V8
140141
if (map->v8context)
141142
msV8FreeContext(map);
143+
#endif
142144

143145
msFree(map);
144146
}

0 commit comments

Comments
 (0)