If we're done with the VT plymouth was running on,
and plymouth wasn't running on the initial VT, we
should jump back to the initial VT and try to
clean up plymouth's VT.
if (state->terminal != NULL)
{
+ if (!state->should_retain_splash)
+ {
+ ply_trace ("Not retaining splash, so deallocating VT");
+ ply_terminal_deactivate_vt (state->terminal);
+ }
ply_terminal_close (state->terminal);
ply_terminal_free (state->terminal);
state->terminal = NULL;