Fix build error with Qt 4.

QSharedPointer::reset() is new in Qt 5.

Change-Id: I6314aed42706b59b19fcc15f8d623f15cc942029
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>