gtk/gtkstyle.c (option_menu_get_props) Use gtk_border_free when freeing

2007-01-03  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkstyle.c (option_menu_get_props)
	* gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use 
	gtk_border_free when freeing borders.


svn path=/trunk/; revision=17032
This commit is contained in:
Michael Natterer
2007-01-03 17:31:57 +00:00
committed by Michael Natterer
parent 014b276774
commit 559649c6ff
3 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2007-01-03 Michael Natterer <mitch@imendio.com>
* gtk/gtkstyle.c (option_menu_get_props)
* gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use
gtk_border_free when freeing borders.
2007-01-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (get_text_area_size): Work when the

View File

@@ -411,7 +411,7 @@ gtk_option_menu_get_props (GtkOptionMenu *option_menu,
props->indicator_spacing = default_props.indicator_spacing;
g_free (indicator_size);
g_free (indicator_spacing);
gtk_border_free (indicator_spacing);
}
static void

View File

@@ -3253,7 +3253,7 @@ option_menu_get_props (GtkWidget *widget,
if (tmp_spacing)
{
*indicator_spacing = *tmp_spacing;
g_free (tmp_spacing);
gtk_border_free (tmp_spacing);
}
else
*indicator_spacing = default_option_indicator_spacing;