Fixed memory leak when getting window list info.