summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-task.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-02-02 10:12:36 +0000
committerRichard Hughes <richard@hughsie.com>2015-02-02 10:12:40 +0000
commitf3ac072bad60ffb43bef2c0d353255ff1c184fba (patch)
treeb9ec66b57a1710c98b1c3d15d44693896f199cec /libappstream-builder/asb-task.c
parenteda6e7c1865501f60e6dc0ced84964f0e1fb9b41 (diff)
downloadappstream-glib-f3ac072bad60ffb43bef2c0d353255ff1c184fba.tar.gz
Close the packages after they have been processed
This means we have to re-open the files for the few packages used as extra-packages to other packages, but means we keep the RSS value to a sane value for a large number of packages. We can't go above 4GB RSS for Fedora... This also means we spend less time 'shutting down' as the packages have typically been released as part of the task, rather when the context exits.
Diffstat (limited to 'libappstream-builder/asb-task.c')
-rw-r--r--libappstream-builder/asb-task.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c
index 4aacb99..ad926e7 100644
--- a/libappstream-builder/asb-task.c
+++ b/libappstream-builder/asb-task.c
@@ -468,6 +468,8 @@ skip:
/* update UI */
asb_panel_remove (priv->panel);
out:
+ /* clear loaded resources */
+ asb_package_close (priv->pkg, NULL);
g_list_free_full (apps, (GDestroyNotify) g_object_unref);
return TRUE;
}