[libgovirt] Revert "proxy: Unref OvirtProxy::api when finalizing"



commit 6e359ab114fe4bfdaff0c16af9d0c2946fddb696
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Thu Jan 21 16:55:13 2016 +0100

    Revert "proxy: Unref OvirtProxy::api when finalizing"
    
    OvirtProxy::api was already unref'ed a few lines before in
    the same method.
    
    This reverts commit dc19dcfbd3c0a45c7538b36b5b4ee5b77eab1623.

 govirt/ovirt-proxy.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/govirt/ovirt-proxy.c b/govirt/ovirt-proxy.c
index a79a6ac..3c7f9ce 100644
--- a/govirt/ovirt-proxy.c
+++ b/govirt/ovirt-proxy.c
@@ -841,10 +841,6 @@ ovirt_proxy_dispose(GObject *obj)
         proxy->priv->display_ca = NULL;
     }
 
-    if (proxy->priv->api != NULL) {
-        g_object_unref(proxy->priv->api);
-    }
-
     G_OBJECT_CLASS(ovirt_proxy_parent_class)->dispose(obj);
 }
 


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