Re: [PATCH] os: Free minimum/recommended resources in _finalize()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 4, 2015 at 1:18 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libosinfo


ACK!
-- 
Fabiano Fidêncio

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux