Qt: fix a misconception and a leak.