Commit bc703438 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Unref fonts. (Found by Miguel.)

1999-12-18  Morten Welinder  <terra@diku.dk>

	* src/item-bar.c (item_bar_destroy): Unref fonts.  (Found by
 	Miguel.)

	* src/style.c (style_shutdown): Add code to warn of font ref leaks
 	on exit.
parent 213a7230
......@@ -45,20 +45,6 @@ enum {
ARG_FIRST_ELEMENT
};
static void
item_bar_destroy (GtkObject *object)
{
ItemBar *bar;
bar = ITEM_BAR (object);
if (bar->tip)
gtk_object_unref (GTK_OBJECT (bar->tip));
if (GTK_OBJECT_CLASS (item_bar_parent_class)->destroy)
(*GTK_OBJECT_CLASS (item_bar_parent_class)->destroy)(object);
}
static void
item_bar_fonts_unref (ItemBar *item_bar)
{
......@@ -73,6 +59,22 @@ item_bar_fonts_unref (ItemBar *item_bar)
}
}
static void
item_bar_destroy (GtkObject *object)
{
ItemBar *bar;
bar = ITEM_BAR (object);
item_bar_fonts_unref (bar);
if (bar->tip)
gtk_object_unref (GTK_OBJECT (bar->tip));
if (GTK_OBJECT_CLASS (item_bar_parent_class)->destroy)
(*GTK_OBJECT_CLASS (item_bar_parent_class)->destroy)(object);
}
/*
* Scale the item-bar heading fonts by the pixels_per_unit of
* th associated sheet.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment