Changed -- to clear, fixed memory leak.