dependency: unref dependency parent if it's set
libpkgconf never sets this internally, but it is in the API and someone could set it (or libpkgconf could in the future), so let's clean up after ourselves.
parent
75a5fe0757
commit
7b3346206e
|
@ -197,6 +197,9 @@ pkgconf_dependency_free_one(pkgconf_dependency_t *dep)
|
|||
if (dep->match != NULL)
|
||||
pkgconf_pkg_unref(dep->match->owner, dep->match);
|
||||
|
||||
if (dep->parent != NULL)
|
||||
pkgconf_pkg_unref(dep->match->owner, dep->parent);
|
||||
|
||||
if (dep->package != NULL)
|
||||
free(dep->package);
|
||||
|
||||
|
|
Loading…
Reference in New Issue