[gnome-control-center] network: Don't leak a builder instance



commit 2d18798d79e41469e625b04ba2da538b49490187
Author: Rui Matos <tiagomatos gmail com>
Date:   Tue Sep 17 16:31:38 2013 +0200

    network: Don't leak a builder instance
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708286

 panels/network/net-vpn.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/net-vpn.c b/panels/network/net-vpn.c
index 1238ae7..98acb2c 100644
--- a/panels/network/net-vpn.c
+++ b/panels/network/net-vpn.c
@@ -526,6 +526,8 @@ net_vpn_finalize (GObject *object)
         g_object_unref (priv->connection);
         g_free (priv->service_type);
 
+        g_clear_object (&priv->builder);
+
         G_OBJECT_CLASS (net_vpn_parent_class)->finalize (object);
 }
 


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