forked from ariadne/pkgconf
cache: unref the package when removing it from the cache
parent
36acd2e409
commit
a620e62286
|
@ -168,6 +168,7 @@ pkgconf_cache_remove(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pkg->flags &= ~PKGCONF_PKG_PROPF_CACHED;
|
pkg->flags &= ~PKGCONF_PKG_PROPF_CACHED;
|
||||||
|
pkgconf_pkg_unref(client, pkg);
|
||||||
*slot = NULL;
|
*slot = NULL;
|
||||||
|
|
||||||
qsort(client->cache_table, client->cache_count,
|
qsort(client->cache_table, client->cache_count,
|
||||||
|
|
Loading…
Reference in New Issue