commit | e2e3d07beb44bdb0fe7954cfefcd8c382b0cfea9 | [log] [tgz] |
---|---|---|
author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | Fri Oct 12 12:25:09 2012 +0200 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Tue Oct 16 11:39:09 2012 -0400 |
tree | 0c429b30a8c4c9929b2ba1f917687f450b2cdf9d | |
parent | 143a898fcc1e29a900bc2f88303a45b5f4703783 [diff] [blame] |
compositor: Check if surface creation failed in weston_compositor_fade.
diff --git a/src/compositor.c b/src/compositor.c index 8b8373b..c3ee70f 100644 --- a/src/compositor.c +++ b/src/compositor.c
@@ -1099,6 +1099,9 @@ if (compositor->fade.surface == NULL) { surface = weston_surface_create(compositor); + if (!surface) + return; + weston_surface_configure(surface, 0, 0, 8192, 8192); weston_surface_set_color(surface, 0.0, 0.0, 0.0, 0.0); wl_list_insert(&compositor->fade_layer.surface_list,