Skip to content
Commit 42e4d9cd authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

main: Stop leaking pointers when we do not enter the main app loop.

In the cases where we returned before calling KApplication::exec(), we
would end up leaking pointers such as |batchJob|, |window| and
|addToArchiveJob|.

Fix it by explicitly deleting |window| (since we do not have another
QWidget to make it a child of) and making |batchJob| and
|addToArchiveJob| be children of our main KApplication so that we do not
need to explicitly delete them under any circumstances.
parent ce373bf8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment