Fixed capture preview2 memory leak.