no mem leak for bilateral filter