lib: Properly finishe OstreeAsyncProgress objects

tingping/wmclass
Alexander Larsson 2016-01-22 15:14:36 +01:00
parent a7b2f05a6a
commit f363fddd32
1 changed files with 9 additions and 0 deletions

View File

@ -771,6 +771,9 @@ xdg_app_installation_install (XdgAppInstallation *self,
if (created_deploy_base && result == NULL)
gs_shutil_rm_rf (deploy_base, cancellable, NULL);
if (ostree_progress)
ostree_async_progress_finish (ostree_progress);
return result;
}
@ -881,6 +884,9 @@ xdg_app_installation_update (XdgAppInstallation *self,
if (main_context)
g_main_context_pop_thread_default (main_context);
if (ostree_progress)
ostree_async_progress_finish (ostree_progress);
return result;
}
@ -1179,6 +1185,9 @@ xdg_app_installation_update_appstream_sync (XdgAppInstallation *self,
g_main_context_pop_thread_default (main_context);
if (ostree_progress)
ostree_async_progress_finish (ostree_progress);
return res;
}