ecore_drm2: Move function call after the NULL check

Was dereferencing ob before NULL checking it.  What could possibly go
wrong?
This commit is contained in:
Derek Foreman 2017-03-17 15:06:39 -05:00
parent 3b50c86985
commit 39da430878
1 changed files with 2 additions and 1 deletions

View File

@ -556,10 +556,11 @@ evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth)
Render_Engine_Swap_Mode
evas_outbuf_buffer_state_get(Outbuf *ob)
{
ecore_drm2_fb_release(ob->priv.output, EINA_FALSE);
/* check for valid output buffer */
if (!ob) return MODE_FULL;
ecore_drm2_fb_release(ob->priv.output, EINA_FALSE);
if (ob->swap_mode == MODE_AUTO && _extn_have_buffer_age)
{
Render_Engine_Swap_Mode swap_mode;