summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-03-17 15:06:39 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-03-17 15:06:39 -0500
commit39da430878ed0d8b4521694087f7f4ed6e1a2e4a (patch)
tree3f512ca7642c70c5dbcb26e8f00b4ae48d4311aa
parent3b50c86985207a4a486860db35079d69911a1e73 (diff)
ecore_drm2: Move function call after the NULL check
Was dereferencing ob before NULL checking it. What could possibly go wrong?
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index cfc40a04c6..f246366d7f 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -556,10 +556,11 @@ evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth)
556Render_Engine_Swap_Mode 556Render_Engine_Swap_Mode
557evas_outbuf_buffer_state_get(Outbuf *ob) 557evas_outbuf_buffer_state_get(Outbuf *ob)
558{ 558{
559 ecore_drm2_fb_release(ob->priv.output, EINA_FALSE);
560 /* check for valid output buffer */ 559 /* check for valid output buffer */
561 if (!ob) return MODE_FULL; 560 if (!ob) return MODE_FULL;
562 561
562 ecore_drm2_fb_release(ob->priv.output, EINA_FALSE);
563
563 if (ob->swap_mode == MODE_AUTO && _extn_have_buffer_age) 564 if (ob->swap_mode == MODE_AUTO && _extn_have_buffer_age)
564 { 565 {
565 Render_Engine_Swap_Mode swap_mode; 566 Render_Engine_Swap_Mode swap_mode;