[gnome-nettool] Fixed unneeded object unreference



commit a74db826484c84e2eeb8c63dc5c2d6d0b8d18615
Author: Jean Schurger <jean schurger org>
Date:   Sat Dec 31 16:49:42 2011 -0800

    Fixed unneeded object unreference
    
    Signed-off-by: GermÃn Poo-CaamaÃo <gpoo gnome org>

 src/info.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/info.c b/src/info.c
index ae1d2bd..7b7e0b8 100644
--- a/src/info.c
+++ b/src/info.c
@@ -200,13 +200,11 @@ info_load_iface (Netinfo *info)
 	gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (info->combo), renderer, TRUE);
 	gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (info->combo), renderer,
 					"pixbuf", 0, NULL);
-	g_object_unref (renderer);
 
 	renderer = gtk_cell_renderer_text_new ();
 	gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (info->combo), renderer, TRUE);
 	gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (info->combo), renderer,
 					"markup", 1, NULL);
-	g_object_unref (renderer);
 
 	gtk_combo_box_set_active (GTK_COMBO_BOX (info->combo), 0);
 }



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