diff --git a/src/as-pool.c b/src/as-pool.c index 93f6e023c..4af3644d2 100644 --- a/src/as-pool.c +++ b/src/as-pool.c @@ -485,8 +485,8 @@ as_pool_update_addon_info (AsPool *pool, AsComponent *cpt) return; } - /* don't act if we already have addons */ - if (as_component_get_addons (extended_cpt)->len > 0) + /* don't add the same addon more than once */ + if (g_ptr_array_find (as_component_get_addons (extended_cpt), cpt, NULL)) continue; as_component_add_addon (extended_cpt, cpt);