gtk/gtkstyle.c (option_menu_get_props) use gtk_requisition_free() instead

2007-09-21  Manish Singh  <yosh@gimp.org>

        * gtk/gtkstyle.c (option_menu_get_props)
        * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): use
        gtk_requisition_free() instead of g_free() for freeing
        requisitions.

svn path=/trunk/; revision=18855
This commit is contained in:
Manish Singh 2007-09-21 21:14:56 +00:00 committed by Manish Singh
parent b0cc27c30b
commit 0983017630
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2007-09-21 Manish Singh <yosh@gimp.org>
* gtk/gtkstyle.c (option_menu_get_props)
* gtk/gtkoptionmenu.c (gtk_option_menu_get_props): use
gtk_requisition_free() instead of g_free() for freeing
requisitions.
2007-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation.c (print_pages_idle): Some more

View File

@ -410,7 +410,7 @@ gtk_option_menu_get_props (GtkOptionMenu *option_menu,
else
props->indicator_spacing = default_props.indicator_spacing;
g_free (indicator_size);
gtk_requisition_free (indicator_size);
gtk_border_free (indicator_spacing);
}

View File

@ -3245,7 +3245,7 @@ option_menu_get_props (GtkWidget *widget,
if (tmp_size)
{
*indicator_size = *tmp_size;
g_free (tmp_size);
gtk_requisition_free (tmp_size);
}
else
*indicator_size = default_option_indicator_size;