+2002-03-25 Sven Neumann <sven@gimp.org>
+
+ * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
+ font_description before accessing a new one.
+ (gtk_rc_parse_stock): always unref the created icon_set. #76289
+
2002-03-25 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
+2002-03-25 Sven Neumann <sven@gimp.org>
+
+ * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
+ font_description before accessing a new one.
+ (gtk_rc_parse_stock): always unref the created icon_set. #76289
+
2002-03-25 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
+2002-03-25 Sven Neumann <sven@gimp.org>
+
+ * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
+ font_description before accessing a new one.
+ (gtk_rc_parse_stock): always unref the created icon_set. #76289
+
2002-03-25 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
+2002-03-25 Sven Neumann <sven@gimp.org>
+
+ * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
+ font_description before accessing a new one.
+ (gtk_rc_parse_stock): always unref the created icon_set. #76289
+
2002-03-25 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
+2002-03-25 Sven Neumann <sven@gimp.org>
+
+ * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
+ font_description before accessing a new one.
+ (gtk_rc_parse_stock): always unref the created icon_set. #76289
+
2002-03-25 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
+2002-03-25 Sven Neumann <sven@gimp.org>
+
+ * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
+ font_description before accessing a new one.
+ (gtk_rc_parse_stock): always unref the created icon_set. #76289
+
2002-03-25 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
if (token != G_TOKEN_STRING)
return G_TOKEN_STRING;
- rc_style->font_desc = pango_font_description_from_string (scanner->value.v_string);
+ if (rc_style->font_desc)
+ pango_font_description_free (rc_style->font_desc);
+
+ rc_style->font_desc =
+ pango_font_description_from_string (scanner->value.v_string);
return G_TOKEN_NONE;
}
}
}
- if (icon_set && icon_set_valid)
+ if (icon_set)
{
- gtk_icon_factory_add (factory,
- stock_id,
- icon_set);
-
+ if (icon_set_valid)
+ gtk_icon_factory_add (factory,
+ stock_id,
+ icon_set);
+
gtk_icon_set_unref (icon_set);
}