cellrenderertext: Don't unnecessarily ref a layout

We never pass a NULL layout to get_size().
This commit is contained in:
Timm Bäder 2019-07-21 10:22:05 +02:00
parent 0bd939624e
commit 03fa8ed259

View File

@ -1652,11 +1652,6 @@ get_size (GtkCellRenderer *cell,
if (width == NULL)
return;
}
if (layout)
g_object_ref (layout);
else
layout = get_layout (celltext, widget, NULL, 0);
pango_layout_get_pixel_extents (layout, NULL, &rect);
@ -1696,8 +1691,6 @@ get_size (GtkCellRenderer *cell,
if (width)
*width = xpad * 2 + rect.width;
g_object_unref (layout);
}
static void