From c963d75dfdeec11f82e79e727062fbf89afa2c04 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 22 Apr 2012 09:19:23 +1000 Subject: Update EFL to latest beta. --- libraries/evas/src/modules/engines/fb/evas_outbuf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libraries/evas/src/modules/engines/fb/evas_outbuf.c') 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, /* setup window and/or fb */ /* if (dithered) create backbuf */ Outbuf *buf; - int fb_fd = -1; + int fb_fd; int fb_depth; 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, return NULL; } fb_fd = fb_postinit(buf->priv.fb.fb); + if (fb_fd < 1) + { + free(buf); + return NULL; + } if (rot == 0 || rot == 180) { -- cgit v1.1