[GT-39] Fixed mem leak at gt.filter templates