[Libosinfo] [PATCH] os: Free minimum/recommended resources in _finalize()
Fabiano Fidêncio
fabiano at fidencio.org
Wed Mar 4 12:27:22 UTC 2015
On Wed, Mar 4, 2015 at 1:18 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> These OsinfoResourcesList objects will be leaked otherwise.
> ---
> osinfo/osinfo_os.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/osinfo/osinfo_os.c b/osinfo/osinfo_os.c
> index ab97c67..4f74331 100644
> --- a/osinfo/osinfo_os.c
> +++ b/osinfo/osinfo_os.c
> @@ -117,6 +117,8 @@ osinfo_os_finalize(GObject *object)
> g_object_unref(os->priv->medias);
> g_object_unref(os->priv->trees);
> g_object_unref(os->priv->variants);
> + g_object_unref(os->priv->minimum);
> + g_object_unref(os->priv->recommended);
>
> g_object_unref(os->priv->scripts);
>
> --
> 2.1.0
>
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo
ACK!
--
Fabiano Fidêncio
More information about the Libosinfo
mailing list