Fixed memory leak when exiting the programm ahead of time

(0) -1 +1 +10 +30 tip

mercurial