Commit a22bcd66 authored by Matthias Clasen's avatar Matthias Clasen

Fix a leak

parent 25a56013
2006-03-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_get_property): Fix
a leak.
* gtk/gtktexttag.c (gtk_text_tag_get_property):
* gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
Avoid an unnecessary strdup. (#336013)
......
2006-03-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_get_property): Fix
a leak.
* gtk/gtktexttag.c (gtk_text_tag_get_property):
* gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
Avoid an unnecessary strdup. (#336013)
......
......@@ -464,7 +464,7 @@ gtk_ui_manager_get_property (GObject *object,
g_value_set_boolean (value, self->private_data->add_tearoffs);
break;
case PROP_UI:
g_value_set_string (value, gtk_ui_manager_get_ui (self));
g_value_take_string (value, gtk_ui_manager_get_ui (self));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, 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