[evolution-patches] e-search-bar leak fix.



Make the gvalue take ownership of the duplicate string.

--Larry
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
retrieving revision 1.224
diff -u -p -r1.224 ChangeLog
--- ChangeLog	9 Jun 2003 17:30:41 -0000	1.224
+++ ChangeLog	11 Jun 2003 20:39:01 -0000
@@ -0,0 +1,4 @@
+2003-06-11  Larry Ewing  <lewing ximian com>
+
+	* e-search-bar.c (impl_get_property): 
+
Index: e-search-bar.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-search-bar.c,v
retrieving revision 1.70
diff -u -p -r1.70 e-search-bar.c
--- e-search-bar.c	13 May 2003 16:04:01 -0000	1.70
+++ e-search-bar.c	11 Jun 2003 20:39:01 -0000
@@ -746,7 +746,7 @@ impl_get_property (GObject *object, guin
 		break;
 
 	case PROP_TEXT:
-		g_value_set_string (value, e_search_bar_get_text (esb));
+		g_value_set_string_take_ownership (value, e_search_bar_get_text (esb));
 		break;
 
 	default:


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