This seams to fix the memory leak when checking if water can freeze.