tool: End status line in switch/upgrade too
This commit is contained in:
parent
11ecf9267e
commit
ad46467f2b
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue