Don't leak the values here. (#169047, Philip Langdale)

2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtksettings.c (gtk_settings_get_property):
	* gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
	the values here.  (#169047, Philip Langdale)
This commit is contained in:
Matthias Clasen 2005-03-03 14:15:14 +00:00 committed by Matthias Clasen
parent f5869e6a87
commit e6716d2336
5 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2005-03-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (gtk_settings_get_property):
* gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
the values here. (#169047, Philip Langdale)
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
Don't warn if a stock icon cannot be found. (#168830,
Sven Neumann)

View File

@ -1,5 +1,9 @@
2005-03-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (gtk_settings_get_property):
* gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
the values here. (#169047, Philip Langdale)
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
Don't warn if a stock icon cannot be found. (#168830,
Sven Neumann)

View File

@ -1,5 +1,9 @@
2005-03-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (gtk_settings_get_property):
* gtk/gtkrc.c (gtk_rc_parse_assignment): Don't leak
the values here. (#169047, Philip Langdale)
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
Don't warn if a stock icon cannot be found. (#168830,
Sven Neumann)

View File

@ -2312,7 +2312,7 @@ gtk_rc_parse_assignment (GScanner *scanner,
{
g_string_append_c (gstring, ' ');
g_value_init (&prop->value, G_TYPE_GSTRING);
g_value_set_static_boxed (&prop->value, gstring);
g_value_take_boxed (&prop->value, gstring);
}
else
g_string_free (gstring, TRUE);

View File

@ -572,8 +572,8 @@ gtk_settings_get_property (GObject *object,
g_value_init (&gstring_value, G_TYPE_GSTRING);
g_value_set_boxed (&gstring_value,
g_string_new (g_value_get_string (&val)));
g_value_take_boxed (&gstring_value,
g_string_new (g_value_get_string (&val)));
g_value_init (&tmp_value, G_PARAM_SPEC_VALUE_TYPE (pspec));