Commit e6716d23 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent f5869e6a
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)
......
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)
......
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)
......
......@@ -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);
......
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment