mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
d9808804d5
commit
c6759a4e15
@ -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);
|
||||
|
@ -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
|
||||
|
@ -1952,6 +1952,8 @@ gnucash_sheet_col_max_width (GnucashSheet *sheet, gint virt_col, gint cell_col)
|
||||
}
|
||||
}
|
||||
|
||||
g_object_unref (layout);
|
||||
|
||||
return max;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user