Qt UI: Fix aspell resource leak.

Correct freeing resources when an error (Valgrind reported).