Fix meter features crashing. Memory was being freed incorrectly