22 lines
725 B
Diff
22 lines
725 B
Diff
--- gdm-2.99.0/gui/simple-greeter/gdm-greeter-background.c.fix-crash-on-background-load-failure
|
|
+++ gdm-2.99.0/gui/simple-greeter/gdm-greeter-background.c
|
|
@@ -481,6 +481,10 @@ update_background (GdmGreeterBackground *background)
|
|
|
|
if (background->priv->pat == NULL) {
|
|
load_image (background);
|
|
+
|
|
+ if (background->priv->pat == NULL)
|
|
+ goto out;
|
|
+
|
|
}
|
|
|
|
if (background->priv->image_placement == BACKGROUND_SCALED) {
|
|
@@ -582,6 +586,7 @@ update_background (GdmGreeterBackground *background)
|
|
cairo_fill (cr);
|
|
}
|
|
|
|
+out:
|
|
cairo_destroy (cr);
|
|
}
|
|
|