fixes another leak in string replace function

fix: index buffer in string replace was not freed

(0) -300 -100 -30 -10 -2 +2 +10 +30 +100 +300 tip

mercurial