tool: End status line in switch/upgrade too

This commit is contained in:
Colin Walters 2014-03-27 07:45:13 -04:00
parent 11ecf9267e
commit ad46467f2b
2 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,8 @@ ot_admin_builtin_switch (int argc, char **argv, OstreeSysroot *sysroot, GCancell
ret = TRUE;
out:
if (console)
gs_console_end_status_line (console, NULL, NULL);
if (new_origin)
g_key_file_unref (new_origin);
if (context)

View File

@ -108,6 +108,8 @@ ot_admin_builtin_upgrade (int argc, char **argv, OstreeSysroot *sysroot, GCancel
ret = TRUE;
out:
if (console)
gs_console_end_status_line (console, NULL, NULL);
if (context)
g_option_context_free (context);
return ret;