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

Christophe Fergeau cfergeau at redhat.com
Wed Mar 4 12:18:42 UTC 2015


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




More information about the Libosinfo mailing list