Always release map

This commit is contained in:
John Firebaugh
2015-08-31 17:20:18 -07:00
parent abc1c84fb8
commit 92f8372d0c

View File

@@ -37,6 +37,11 @@ function renderTest(style, info, base, key) {
t.once('end', function() {
clearTimeout(watchdog);
if (map) {
map.release();
map = null;
}
});
var options = {};
@@ -53,8 +58,6 @@ function renderTest(style, info, base, key) {
map.load(style);
map.render(info[key], function(err, data) {
map.release();
if (err) {
console.log('THIS IS AN ERROR');
t.error(err);