Fix a leak

This commit is contained in:
Matthias Clasen 2006-03-26 06:10:15 +00:00
parent 25a56013c5
commit a22bcd66c4
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
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)

View File

@ -1,5 +1,8 @@
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)

View File

@ -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);