Use the correct function to free boxed GdkColors

This fixes a segfault in gtk3-demo when running under accerciser.
This commit is contained in:
Matthias Clasen 2011-02-19 08:34:21 -05:00
parent d1fbb52eb4
commit 8d9144a0c4

View File

@ -94,14 +94,14 @@ gchar *gail_text_cell_property_list[] = {
"font_desc", "font_desc",
"attributes", "attributes",
"background_gdk", "background-gdk",
"editable", "editable",
"family", "family",
"foreground_gdk", "foreground-gdk",
"rise", "rise",
"scale", "scale",
"size", "size",
"size_points", "size-points",
"stretch", "stretch",
"strikethrough", "strikethrough",
"style", "style",
@ -111,19 +111,19 @@ gchar *gail_text_cell_property_list[] = {
"weight", "weight",
/* Also need the sets */ /* Also need the sets */
"background_set", "background-set",
"editable_set", "editable-set",
"family_set", "family-set",
"foreground_set", "foreground-set",
"rise_set", "rise-set",
"scale_set", "scale-set",
"size_set", "size-set",
"stretch_set", "stretch-set",
"strikethrough_set", "strikethrough-set",
"style_set", "style-set",
"underline_set", "underline-set",
"variant_set", "variant-set",
"weight_set", "weight-set",
NULL NULL
}; };
@ -538,9 +538,9 @@ create_pango_layout(GtkCellRendererText *gtk_renderer,
pango_attr_list_unref (attr_list); pango_attr_list_unref (attr_list);
pango_font_description_free (font_desc); pango_font_description_free (font_desc);
g_free (foreground_gdk);
pango_attr_list_unref (attributes); pango_attr_list_unref (attributes);
g_free (renderer_text); g_free (renderer_text);
gdk_color_free (foreground_gdk);
return layout; return layout;
} }