Unref a few pango layouts returned by gtk_widget_create_pango_layout().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16137 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-05-30 15:56:31 +00:00
parent d9808804d5
commit c6759a4e15
3 changed files with 5 additions and 0 deletions

View File

@ -623,6 +623,7 @@ check_realize (GtkWidget *widget, gpointer user_data)
layout = gtk_widget_create_pango_layout(widget, "sample");
pango_layout_get_pixel_size(layout, NULL, &font_height);
g_object_unref(layout);
check_size = (font_height > 0) ? font_height - 6 : 9;
check_info->mask = gdk_pixmap_new (NULL, check_size, check_size, 1);

View File

@ -1075,6 +1075,8 @@ gnc_dense_cal_draw_to_buffer(GncDenseCal *dcal)
widget->allocation.y,
widget->allocation.width,
widget->allocation.height);
g_object_unref(layout);
}
static void

View File

@ -1952,6 +1952,8 @@ gnucash_sheet_col_max_width (GnucashSheet *sheet, gint virt_col, gint cell_col)
}
}
g_object_unref (layout);
return max;
}