diff options
Diffstat (limited to 'libraries/evas/src/modules/engines/fb/evas_outbuf.c')
-rw-r--r-- | libraries/evas/src/modules/engines/fb/evas_outbuf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/evas/src/modules/engines/fb/evas_outbuf.c b/libraries/evas/src/modules/engines/fb/evas_outbuf.c index 57cf7a6..7ae24c5 100644 --- a/libraries/evas/src/modules/engines/fb/evas_outbuf.c +++ b/libraries/evas/src/modules/engines/fb/evas_outbuf.c | |||
@@ -25,7 +25,7 @@ evas_fb_outbuf_fb_setup_fb(int w, int h, int rot, Outbuf_Depth depth, int vt_no, | |||
25 | /* setup window and/or fb */ | 25 | /* setup window and/or fb */ |
26 | /* if (dithered) create backbuf */ | 26 | /* if (dithered) create backbuf */ |
27 | Outbuf *buf; | 27 | Outbuf *buf; |
28 | int fb_fd = -1; | 28 | int fb_fd; |
29 | int fb_depth; | 29 | int fb_depth; |
30 | 30 | ||
31 | fb_depth = -1; | 31 | fb_depth = -1; |
@@ -51,6 +51,11 @@ evas_fb_outbuf_fb_setup_fb(int w, int h, int rot, Outbuf_Depth depth, int vt_no, | |||
51 | return NULL; | 51 | return NULL; |
52 | } | 52 | } |
53 | fb_fd = fb_postinit(buf->priv.fb.fb); | 53 | fb_fd = fb_postinit(buf->priv.fb.fb); |
54 | if (fb_fd < 1) | ||
55 | { | ||
56 | free(buf); | ||
57 | return NULL; | ||
58 | } | ||
54 | 59 | ||
55 | if (rot == 0 || rot == 180) | 60 | if (rot == 0 || rot == 180) |
56 | { | 61 | { |