goffice r2251 - in trunk: . goffice/gtk



Author: mortenw
Date: Fri Oct 24 20:46:46 2008
New Revision: 2251
URL: http://svn.gnome.org/viewvc/goffice?rev=2251&view=rev

Log:
2008-10-24  Morten Welinder  <terra gnome org>

	* goffice/gtk/go-combo-text.c (go_combo_text_init): Plug leak.

	* goffice/gtk/go-color-palette.c (go_color_palette_set_group):
	Balance references.



Modified:
   trunk/ChangeLog
   trunk/goffice/gtk/go-action-combo-text.c
   trunk/goffice/gtk/go-color-palette.c
   trunk/goffice/gtk/go-combo-text.c

Modified: trunk/goffice/gtk/go-action-combo-text.c
==============================================================================
--- trunk/goffice/gtk/go-action-combo-text.c	(original)
+++ trunk/goffice/gtk/go-action-combo-text.c	Fri Oct 24 20:46:46 2008
@@ -196,6 +196,7 @@
 go_action_combo_text_finalize (GObject *obj)
 {
 	GOActionComboText *taction = GO_ACTION_COMBO_TEXT (obj);
+	g_free (taction->entry_val);
 	go_slist_free_custom (taction->elements, (GFreeFunc)g_free);
 	combo_text_parent->finalize (obj);
 }

Modified: trunk/goffice/gtk/go-color-palette.c
==============================================================================
--- trunk/goffice/gtk/go-color-palette.c	(original)
+++ trunk/goffice/gtk/go-color-palette.c	Fri Oct 24 20:46:46 2008
@@ -407,6 +407,7 @@
 		p->group = NULL;
 	}
 	if (cg != NULL) {
+		g_object_ref (cg);
 		p->group = cg;
 		g_signal_connect_swapped (G_OBJECT (cg),
 			"history-changed",

Modified: trunk/goffice/gtk/go-combo-text.c
==============================================================================
--- trunk/goffice/gtk/go-combo-text.c	(original)
+++ trunk/goffice/gtk/go-combo-text.c	Fri Oct 24 20:46:46 2008
@@ -194,6 +194,7 @@
 	gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (ct->list), FALSE);
 	store = gtk_list_store_new (1, G_TYPE_STRING);
 	gtk_tree_view_set_model (GTK_TREE_VIEW (ct->list), GTK_TREE_MODEL (store));
+	g_object_unref (store);
 	renderer = gtk_cell_renderer_text_new ();
 	column = gtk_tree_view_column_new_with_attributes (
 								NULL,



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