diff --git a/src/gdmuser/gdm-user.c b/src/gdmuser/gdm-user.c index e571a81d4..ffd57f94a 100644 --- a/src/gdmuser/gdm-user.c +++ b/src/gdmuser/gdm-user.c @@ -20,6 +20,7 @@ #include +#include #include #include #include @@ -881,7 +882,7 @@ curved_rectangle (cairo_t *cr, x1 = x0 + width; y1 = y0 + height; - if (!width || !height) { + if (width < FLT_EPSILON || height < FLT_EPSILON) { return; } @@ -1156,8 +1157,8 @@ gdm_user_render_icon (GdmUser *user, } else { pixbuf = NULL; } - out: g_free (path); + out: if (pixbuf != NULL) { framed = frame_pixbuf (pixbuf);