[libgdata] demos: Remove some incorrect unrefs



commit 6ddc77720eda2035eddc47d03cdf3aa4971ef3e0
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Jul 30 20:50:17 2011 +0100

    demos: Remove some incorrect unrefs
    
    This doesn't fix the problem of the memory management for widgets being a
    little broken in the scrapbook, but at least it stops the warnings.

 demos/scrapbook/scrapbook.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/demos/scrapbook/scrapbook.c b/demos/scrapbook/scrapbook.c
index 3fc1bbc..360393b 100644
--- a/demos/scrapbook/scrapbook.c
+++ b/demos/scrapbook/scrapbook.c
@@ -75,7 +75,6 @@ picture_selected (GtkTreeView *tree, GtkTreePath *path, GtkTreeViewColumn *colum
 										 self->main_data->currentCol, self->main_data->currentCol+1);
 	gtk_widget_show (button);
 	self->main_data->currentRow[self->main_data->currentCol]++;
-	g_object_unref (self->tView);
 }
 
 
@@ -115,7 +114,6 @@ video_selected (GtkTreeView *tree, GtkTreePath *path, GtkTreeViewColumn *column,
 										 self->main_data->currentCol, self->main_data->currentCol+1);
 	gtk_widget_show (button);
 	self->main_data->currentRow[self->main_data->currentCol]++;
-	g_object_unref (self->tView);
 }
 
 static void



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