Fix memory leak + cleanup in projecthandlertest
Summary: Had to open the file to fix something. Fixed some obvious improvements
Reviewers: Plasma, mart
Reviewed By: mart
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D2838