memory leak fix (autohide)