[libvirt-glib v2 5/9] fixup! Add GVirConfigDomainHostdevPci

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

 



---
 libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c b/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c
index ed1d146..ce31056 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c
@@ -125,6 +125,7 @@ void gvir_config_domain_hostdev_pci_set_address(GVirConfigDomainHostdevPci *host
         }
     }
     gvir_config_object_set_child(source, node);
+    g_object_unref(source);
 }
 
 GVirConfigDomainAddressPci *gvir_config_domain_hostdev_pci_get_address(GVirConfigDomainHostdevPci *hostdev)
@@ -141,6 +142,7 @@ GVirConfigDomainAddressPci *gvir_config_domain_hostdev_pci_get_address(GVirConfi
     address = gvir_config_object_get_child_with_type(source,
                                                      "address",
                                                      GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI);
+    g_object_unref(source);
     return GVIR_CONFIG_DOMAIN_ADDRESS_PCI(address);
 }
 
@@ -183,6 +185,7 @@ void gvir_config_domain_hostdev_pci_set_rom(GVirConfigDomainHostdevPci *hostdev,
     xmlSetProp(rom_node,
                (const xmlChar *) "file",
                (const xmlChar *) rom_file);
+    g_object_unref(rom);
 }
 
 const gchar *gvir_config_domain_hostdev_pci_get_rom(GVirConfigDomainHostdevPci *hostdev,
-- 
2.5.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



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