change retain algorithm to be the same as in js

This commit is contained in:
Konstantin Käfer
2014-01-15 17:19:06 +01:00
parent 44a0f98fe5
commit ad26f67095
3 changed files with 81 additions and 29 deletions

View File

@@ -69,7 +69,7 @@ tile::tile(tile_id id)
}
tile::~tile() {
fprintf(stderr, "[%p] deleting tile %d/%d/%d\n", this, id.z, id.x, id.y);
// fprintf(stderr, "[%p] deleting tile %d/%d/%d\n", this, id.z, id.x, id.y);
if (this->data) {
free(this->data);
}